Skip to content

Commit 8d46120

Browse files
committed
Move helper to root and fix code styles
1 parent fc10fd8 commit 8d46120

8 files changed

+980
-1631
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"CleaniqueCoders\\LaravelExpiry\\": "src/"
1515
},
1616
"files": [
17-
"src/Support/helpers.php"
17+
"support/helpers.php"
1818
]
1919
},
2020
"autoload-dev": {

composer.lock

Lines changed: 974 additions & 1619 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Exceptions/ExpiredAccountException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
use Exception;
66

7-
class ExpiredAccountException extends Exception
8-
{
9-
}
7+
class ExpiredAccountException extends Exception {}

src/Exceptions/ExpiredPasswordException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
use Exception;
66

7-
class ExpiredPasswordException extends Exception
8-
{
9-
}
7+
class ExpiredPasswordException extends Exception {}

src/Http/Middleware/AccountExpiry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handle($request, Closure $next)
2020
);
2121
auth()->logout();
2222

23-
throw new \CleaniqueCoders\LaravelExpiry\Exceptions\ExpiredAccountException();
23+
throw new \CleaniqueCoders\LaravelExpiry\Exceptions\ExpiredAccountException;
2424
}
2525

2626
return $next($request);

src/Http/Middleware/PasswordExpiry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handle($request, Closure $next)
2020
);
2121
auth()->logout();
2222

23-
throw new \CleaniqueCoders\LaravelExpiry\Exceptions\ExpiredPasswordException();
23+
throw new \CleaniqueCoders\LaravelExpiry\Exceptions\ExpiredPasswordException;
2424
}
2525

2626
return $next($request);

src/LaravelExpiryServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,5 @@ public function boot()
1919
/**
2020
* Register the application services.
2121
*/
22-
public function register()
23-
{
24-
}
22+
public function register() {}
2523
}
File renamed without changes.

0 commit comments

Comments
 (0)