Passed
Push — master ( c611fa...308bce )
by Curtis
21:54 queued 09:52
created
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $user = $this->loggableUser($request);
39 39
 
40
-        if (! $user) {
40
+        if (!$user) {
41 41
             return false;
42 42
         }
43 43
 
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
         }
67 67
         // set company id as default
68 68
         $main_company = $user->person->company();
69
-        if ($main_company !== null && ! ($user->isAdmin())) {
69
+        if ($main_company !== null && !($user->isAdmin())) {
70 70
             $c_id = $main_company->id;
71 71
             $db = Connections::Tenant.$c_id;
72 72
             $this->setConnection(Connections::Tenant, $db);
73 73
         }
74 74
 
75
-        if (! optional($user)->currentPasswordIs($request->input('password'))) {
75
+        if (!optional($user)->currentPasswordIs($request->input('password'))) {
76 76
             return;
77 77
         }
78 78
 
Please login to merge, or discard this patch.
app/Http/Controllers/Dashboard/ChartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     public function changedb(Request $request)
114 114
     {
115 115
         $company_id = $request->get('comid');
116
-        if (! empty($company_id)) {
116
+        if (!empty($company_id)) {
117 117
             $db = Connections::Tenant.$company_id;
118 118
             $this->setConnection(Connections::Tenant, $db);
119 119
         } else {
Please login to merge, or discard this patch.