@@ -37,7 +37,7 @@ discard block |
||
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 |
||
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 |
@@ -113,7 +113,7 @@ |
||
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 { |