Passed
Pull Request — master (#1300)
by Curtis
05:45
created
app/Traits/enso/files/HasFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         if (App::environment('testing')) {
56 56
             $directory = Config::get('enso.files.testingFolder');
57 57
 
58
-            if (! Storage::has($directory)) {
58
+            if (!Storage::has($directory)) {
59 59
                 Storage::makeDirectory($directory);
60 60
             }
61 61
 
@@ -102,6 +102,6 @@  discard block
 block discarded – undo
102 102
 
103 103
     protected static function bootHasFile()
104 104
     {
105
-        self::deleting(fn ($model) => (new Files($model))->delete());
105
+        self::deleting(fn($model) => (new Files($model))->delete());
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
app/Traits/enso/avatars/HasAvatar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public static function bootHasAvatar()
11 11
     {
12
-        self::created(fn ($model) => $model->generateAvatar());
12
+        self::created(fn($model) => $model->generateAvatar());
13 13
     }
14 14
 
15 15
     public function avatar()
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.