@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function handle($request, Closure $next) |
| 24 | 24 | { |
| 25 | - if(config('_auth.honeypot.enabled')) |
|
| 25 | + if (config('_auth.honeypot.enabled')) |
|
| 26 | 26 | { |
| 27 | 27 | $value = $request->input(config('_auth.honeypot.field')); |
| 28 | 28 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | protected function checkHoneypot($value) |
| 43 | 43 | { |
| 44 | - if($value !== null) |
|
| 44 | + if ($value !== null) |
|
| 45 | 45 | { |
| 46 | 46 | throw new DisplayException('auth::honeypot.error'); |
| 47 | 47 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | foreach ($this->display as $exception) |
| 30 | 30 | { |
| 31 | - if($e instanceof $exception) |
|
| 31 | + if ($e instanceof $exception) |
|
| 32 | 32 | { |
| 33 | 33 | return back()->withInput()->withError($e->getMessage()); |
| 34 | 34 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | $throttler->incrementAttempts(); |
| 21 | 21 | |
| 22 | - if($throttler->tooManyAttempts() || $throttler->lockedOut()) |
|
| 22 | + if ($throttler->tooManyAttempts() || $throttler->lockedOut()) |
|
| 23 | 23 | { |
| 24 | 24 | $throttler->lockOut(); |
| 25 | 25 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function before(Hasher $hasher, $job) |
| 16 | 16 | { |
| 17 | - if($hasher->needsRehash($password = $job->attributes['password'])) |
|
| 17 | + if ($hasher->needsRehash($password = $job->attributes['password'])) |
|
| 18 | 18 | { |
| 19 | 19 | $job->attributes['password'] = $hasher->make($password); |
| 20 | 20 | } |
@@ -69,9 +69,9 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | private function callIfExistsAndEnabled($method, array $parameters = []) |
| 71 | 71 | { |
| 72 | - if( ! $this->isEnabled()) return; |
|
| 72 | + if (!$this->isEnabled()) return; |
|
| 73 | 73 | |
| 74 | - if(method_exists($this, $method) && $this->{"{$method}IsEnabled"}()) |
|
| 74 | + if (method_exists($this, $method) && $this->{"{$method}IsEnabled"}()) |
|
| 75 | 75 | { |
| 76 | 76 | $this->container->call([$this, $method], $parameters); |
| 77 | 77 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function handle(Guard $auth) |
| 39 | 39 | { |
| 40 | - if( ! $auth->attempt($this->credentials, $this->remember)) |
|
| 40 | + if (!$auth->attempt($this->credentials, $this->remember)) |
|
| 41 | 41 | { |
| 42 | 42 | throw new DisplayException('auth::login.error'); |
| 43 | 43 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function handle(UserRepositoryInterface $users, Hasher $hasher) |
| 40 | 40 | { |
| 41 | - if( ! $user = $users->findByResetToken($this->token)) |
|
| 41 | + if (!$user = $users->findByResetToken($this->token)) |
|
| 42 | 42 | { |
| 43 | 43 | throw new DisplayException('auth::reset.error'); |
| 44 | 44 | } |
@@ -16,15 +16,15 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function boot() |
| 18 | 18 | { |
| 19 | - $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'auth'); |
|
| 19 | + $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'auth'); |
|
| 20 | 20 | |
| 21 | - $this->publishes([__DIR__.'/../config/_auth.php' => config_path('_auth.php')], 'config'); |
|
| 21 | + $this->publishes([__DIR__ . '/../config/_auth.php' => config_path('_auth.php')], 'config'); |
|
| 22 | 22 | |
| 23 | - $this->publishes([__DIR__.'/../database/migrations/' => database_path('migrations')], 'migration'); |
|
| 23 | + $this->publishes([__DIR__ . '/../database/migrations/' => database_path('migrations')], 'migration'); |
|
| 24 | 24 | |
| 25 | - $this->publishes([__DIR__.'/../resources/lang/' => base_path('resources/lang/vendor/auth')], 'lang'); |
|
| 25 | + $this->publishes([__DIR__ . '/../resources/lang/' => base_path('resources/lang/vendor/auth')], 'lang'); |
|
| 26 | 26 | |
| 27 | - include __DIR__.'/Http/routes.php'; |
|
| 27 | + include __DIR__ . '/Http/routes.php'; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function register() |
| 36 | 36 | { |
| 37 | - $this->mergeConfigFrom(__DIR__.'/../config/_auth.php', 'auth'); |
|
| 37 | + $this->mergeConfigFrom(__DIR__ . '/../config/_auth.php', 'auth'); |
|
| 38 | 38 | |
| 39 | 39 | $this->registerUserRepository(); |
| 40 | 40 | |