@@ -55,7 +55,7 @@ discard block |
||
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 |
||
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 | } |
@@ -9,7 +9,7 @@ |
||
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() |
@@ -119,11 +119,11 @@ discard block |
||
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 |
||
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 |
||
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()); |