aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/src/Authenticate/AuthGuard.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/account/src/Authenticate/AuthGuard.php')
-rw-r--r--main/app/sprinkles/account/src/Authenticate/AuthGuard.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/main/app/sprinkles/account/src/Authenticate/AuthGuard.php b/main/app/sprinkles/account/src/Authenticate/AuthGuard.php
index efcfaae..ce64bd7 100644
--- a/main/app/sprinkles/account/src/Authenticate/AuthGuard.php
+++ b/main/app/sprinkles/account/src/Authenticate/AuthGuard.php
@@ -5,6 +5,7 @@
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
+
namespace UserFrosting\Sprinkle\Account\Authenticate;
use Psr\Http\Message\ResponseInterface;
@@ -29,22 +30,20 @@ class AuthGuard
*
* @param $authenticator Authenticator The current authentication object.
*/
- public function __construct($authenticator)
- {
+ public function __construct($authenticator) {
$this->authenticator = $authenticator;
}
/**
* Invoke the AuthGuard middleware, throwing an exception if there is no authenticated user in the session.
*
- * @param \Psr\Http\Message\ServerRequestInterface $request PSR7 request
- * @param \Psr\Http\Message\ResponseInterface $response PSR7 response
- * @param callable $next Next middleware
+ * @param \Psr\Http\Message\ServerRequestInterface $request PSR7 request
+ * @param \Psr\Http\Message\ResponseInterface $response PSR7 response
+ * @param callable $next Next middleware
*
* @return \Psr\Http\Message\ResponseInterface
*/
- public function __invoke($request, $response, $next)
- {
+ public function __invoke($request, $response, $next) {
if (!$this->authenticator->check()) {
throw new AuthExpiredException();
} else {