@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public function login(array $credentials, $remember = false) |
| 66 | 66 | { |
| 67 | - if (! $this->statefulGuard()->attempt($credentials, $remember)) { |
|
| 67 | + if (!$this->statefulGuard()->attempt($credentials, $remember)) { |
|
| 68 | 68 | return $this->eventListener()->userHasFailedToLogIn(); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | ]; |
| 109 | 109 | |
| 110 | 110 | foreach ($requiredParams as $param) { |
| 111 | - if (! isset($config[$param])) { |
|
| 111 | + if (!isset($config[$param])) { |
|
| 112 | 112 | throw new InvalidArgumentException("Missing auth service configuration: $param."); |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | protected function registerAuthServiceConfig() |
| 46 | 46 | { |
| 47 | - $this->app->singleton('AuthService\Contracts\AuthServiceConfigInterface', function ($app) { |
|
| 47 | + $this->app->singleton('AuthService\Contracts\AuthServiceConfigInterface', function($app) { |
|
| 48 | 48 | return \AuthService\AuthServiceConfig::fromArray($app['config']->get('authservice')); |
| 49 | 49 | }); |
| 50 | 50 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | protected function registerAuthEventListener() |
| 58 | 58 | { |
| 59 | - $this->app->singleton('AuthService\Contracts\AuthEventListenerInterface', function ($app) { |
|
| 59 | + $this->app->singleton('AuthService\Contracts\AuthEventListenerInterface', function($app) { |
|
| 60 | 60 | $redirector = $app['redirect']; |
| 61 | 61 | $config = $app->make('AuthService\Contracts\AuthServiceConfigInterface'); |
| 62 | 62 | $eventListenerClass = $config->authEventListenerClass(); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | protected function registerAuthService() |
| 74 | 74 | { |
| 75 | - $this->app->singleton('AuthService\Contracts\AuthServiceInterface', function ($app) { |
|
| 75 | + $this->app->singleton('AuthService\Contracts\AuthServiceInterface', function($app) { |
|
| 76 | 76 | $statefulGuard = $app['auth']->guard(); |
| 77 | 77 | $eventListener = $app->make('AuthService\Contracts\AuthEventListenerInterface'); |
| 78 | 78 | |