Passed
Push — main ( f4cc86...986963 )
by Marco Aurélio
12:42 queued 09:11
created
src/NativeSessionServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/NativeSessionGuard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.