Passed
Push — master ( 27ee29...5ee236 )
by Curtis
05:59 queued 16s
created
app/DynamicRelations/Company/Documents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 
17 17
     public function closure(): Closure
18 18
     {
19
-        return fn () => $this->morphMany(Document::class, 'documentable');
19
+        return fn() => $this->morphMany(Document::class, 'documentable');
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
app/DynamicRelations/Company/Comments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
     public function closure(): Closure
17 17
     {
18
-        return fn () => $this->morphMany(Comment::class, 'commentable');
18
+        return fn() => $this->morphMany(Comment::class, 'commentable');
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
app/Person.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
         }
120 120
 
121 121
         // add birthyear to person table ( for form builder )
122
-        if ($title == 'BIRT' && ! empty($date)) {
122
+        if ($title == 'BIRT' && !empty($date)) {
123 123
             $this->birthday = date('Y-m-d', strtotime($date));
124 124
         }
125 125
         // add deathyear to person table ( for form builder )
126
-        if ($title == 'DEAT' && ! empty($date)) {
126
+        if ($title == 'DEAT' && !empty($date)) {
127 127
             $this->deathday = date('Y-m-d', strtotime($date));
128 128
         }
129 129
         $this->save();
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     public function gender()
173 173
     {
174
-        if (! $this->title) {
174
+        if (!$this->title) {
175 175
             return;
176 176
         }
177 177
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     public function syncCompanies($companyIds, $mainCompanyId)
191 191
     {
192 192
         $pivotIds = (new Collection($companyIds))
193
-            ->reduce(fn ($pivot, $value) => $pivot->put($value, [
193
+            ->reduce(fn($pivot, $value) => $pivot->put($value, [
194 194
                 'is_main' => $value === $mainCompanyId,
195 195
                 'is_mandatary' => false,
196 196
             ]), new Collection());
Please login to merge, or discard this patch.
app/Traits/ActivationTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function initiateEmailActivationApi(User $user)
22 22
     {
23
-        if (! config('settings.activation') || ! $this->validateEmail($user)) {
23
+        if (!config('settings.activation') || !$this->validateEmail($user)) {
24 24
             return true;
25 25
         }
26 26
 
Please login to merge, or discard this patch.
app/Service/Tenant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     private static function tenantPrefix()
41 41
     {
42
-        if (! isset(self::$tenantPrefix)) {
42
+        if (!isset(self::$tenantPrefix)) {
43 43
             self::$tenantPrefix = self::tenantDatabase();
44 44
         }
45 45
 
Please login to merge, or discard this patch.
app/Tables/Builders/PersonTableIndi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         ')->leftJoin('users', 'people.id', '=', 'users.person_id')
21 21
             ->leftJoin(
22 22
                 'company_person',
23
-                fn ($join) => $join
23
+                fn($join) => $join
24 24
                     ->on('people.id', '=', 'company_person.person_id')
25 25
                     ->where('company_person.is_main', true)
26 26
             )->leftJoin('companies', 'company_person.company_id', 'companies.id')
Please login to merge, or discard this patch.
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.