Passed
Push — master ( 4c7ed3...b8c9dc )
by Curtis
05:38
created
app/Http/Controllers/Auth/LoginController.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
             // Tenant::set($company);
93 93
             $value = Connections::Tenant.$company->id;
94 94
 
95
-        }else{
95
+        } else{
96 96
             // $value = '';
97 97
 
98 98
         }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $user = $this->loggableUser($request);
57 57
 
58
-        if (! $user) {
58
+        if (!$user) {
59 59
             return false;
60 60
         }
61 61
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $user = User::whereEmail($request->input('email'))->first();
80 80
         $company = $user->company();
81 81
         $tanent = false;
82
-        if($company) {
82
+        if ($company) {
83 83
             $tanent = true;
84 84
         }
85 85
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             // Tenant::set($company);
93 93
             $value = Connections::Tenant.$company->id;
94 94
 
95
-        }else{
95
+        } else {
96 96
             // $value = '';
97 97
 
98 98
         }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         \Session::put('db', $value);
107 107
 
108
-        if (! optional($user)->currentPasswordIs($request->input('password'))) {
108
+        if (!optional($user)->currentPasswordIs($request->input('password'))) {
109 109
             return;
110 110
         }
111 111
 
Please login to merge, or discard this patch.