@@ -25,8 +25,8 @@ |
||
25 | 25 | /** |
26 | 26 | * Create a new instance of AuthEventListener class. |
27 | 27 | * |
28 | - * @param Illuminate\Routing\Redirector $redirector |
|
29 | - * @param AuthService\Contracts\AuthServiceConfig $config |
|
28 | + * @param Redirector $redirector |
|
29 | + * @param AuthServiceConfigContract $config |
|
30 | 30 | */ |
31 | 31 | public function __construct(Redirector $redirector, AuthServiceConfigContract $config) |
32 | 32 | { |
@@ -25,8 +25,8 @@ |
||
25 | 25 | /** |
26 | 26 | * Create a new instance of AuthService class. |
27 | 27 | * |
28 | - * @param Illuminate\Contracts\Auth\StatefulGuard $statefulGuard |
|
29 | - * @param AuthService\Contracts\AuthEventListener $eventListener |
|
28 | + * @param StatefulGuardContract $statefulGuard |
|
29 | + * @param AuthEventListenerContract $eventListener |
|
30 | 30 | */ |
31 | 31 | public function __construct(StatefulGuardContract $statefulGuard, AuthEventListenerContract $eventListener) |
32 | 32 | { |
@@ -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 |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * |
97 | 97 | * @param array $config |
98 | 98 | * |
99 | - * @return AuthService\Contracts\AuthServiceConfig |
|
99 | + * @return AuthServiceConfig |
|
100 | 100 | */ |
101 | 101 | public static function fromArray(array $config) |
102 | 102 | { |
@@ -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\AuthServiceConfig', function ($app) { |
|
47 | + $this->app->singleton('AuthService\Contracts\AuthServiceConfig', 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\AuthEventListener', function ($app) { |
|
59 | + $this->app->singleton('AuthService\Contracts\AuthEventListener', function($app) { |
|
60 | 60 | $redirector = $app['redirect']; |
61 | 61 | $config = $app->make('AuthService\Contracts\AuthServiceConfig'); |
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\AuthService', function ($app) { |
|
75 | + $this->app->singleton('AuthService\Contracts\AuthService', function($app) { |
|
76 | 76 | $statefulGuard = $app['auth']->guard(); |
77 | 77 | $eventListener = $app->make('AuthService\Contracts\AuthEventListener'); |
78 | 78 |