@@ -24,7 +24,7 @@ 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 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | // Laravel implements a Chain of Responsibility on the Authentication process. |
| 34 | 34 | // If this Guard cannot authenticate, we must return null to give room for |
| 35 | 35 | // other Guards to attempt to authenticate the current request. |
| 36 | - if (! $session) { |
|
| 36 | + if (!$session) { |
|
| 37 | 37 | return null; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | return $this->user; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - public function validate(array $credentials = []) |
|
| 51 | + public function validate(array $credentials = [ ]) |
|
| 52 | 52 | { |
| 53 | 53 | return (bool) $this->provider->retrieveByCredentials($_SESSION); |
| 54 | 54 | } |
@@ -11,15 +11,15 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function register() |
| 13 | 13 | { |
| 14 | - Auth::provider(NativeSessionUserProvider::class, function () { |
|
| 14 | + Auth::provider(NativeSessionUserProvider::class, function() { |
|
| 15 | 15 | return $this->app->make(NativeSessionUserProvider::class); |
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | - Auth::extend(NativeSessionGuard::class, function (Container $app) { |
|
| 18 | + Auth::extend(NativeSessionGuard::class, function(Container $app) { |
|
| 19 | 19 | return $app->make(NativeSessionGuard::class); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - $this->app->bind(SessionRetriever::class, function () { |
|
| 22 | + $this->app->bind(SessionRetriever::class, function() { |
|
| 23 | 23 | $config = $this->app->make(Repository::class); |
| 24 | 24 | $path = $config->get('auth.guards.php.storage'); |
| 25 | 25 | |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | // session_start(): php_network_getaddresses: getaddrinfo failed: Name or service not known |
| 52 | 52 | // This error is happening on 0.02% of our requests and AWS treat it as transient network |
| 53 | 53 | // issues. Retrying before giving up might mitigate the problem. |
| 54 | - retry(3, function () { |
|
| 54 | + retry(3, function() { |
|
| 55 | 55 | session_start(); |
| 56 | 56 | }); |
| 57 | 57 | |