@@ -10,11 +10,11 @@ |
||
| 10 | 10 | { |
| 11 | 11 | public function register() |
| 12 | 12 | { |
| 13 | - Auth::provider(NativeSessionUserProvider::class, function () { |
|
| 13 | + Auth::provider(NativeSessionUserProvider::class, function() { |
|
| 14 | 14 | return $this->app->make(NativeSessionUserProvider::class); |
| 15 | 15 | }); |
| 16 | 16 | |
| 17 | - Auth::extend(NativeSessionGuard::class, function (Container $app) { |
|
| 17 | + Auth::extend(NativeSessionGuard::class, function(Container $app) { |
|
| 18 | 18 | return $app->make(NativeSessionGuard::class); |
| 19 | 19 | }); |
| 20 | 20 | } |
@@ -24,13 +24,13 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | public function user() |
| 26 | 26 | { |
| 27 | - if (! is_null($this->user)) { |
|
| 27 | + if (!is_null($this->user)) { |
|
| 28 | 28 | return $this->user; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | $this->session->start(); |
| 32 | 32 | |
| 33 | - if (! isset($_SESSION)) { |
|
| 33 | + if (!isset($_SESSION)) { |
|
| 34 | 34 | return null; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | return $this->user; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - public function validate(array $credentials = []) |
|
| 48 | + public function validate(array $credentials = [ ]) |
|
| 49 | 49 | { |
| 50 | 50 | return (bool) $this->provider->retrieveByCredentials($_SESSION); |
| 51 | 51 | } |