We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -46,7 +46,7 @@ |
||
46 | 46 | if (isset($attributes['subfields'])) { |
47 | 47 | foreach ($attributes['subfields'] as $subfield) { |
48 | 48 | if (isset($subfield[$macro])) { |
49 | - $config = ! is_array($subfield[$macro]) ? [] : $subfield[$macro]; |
|
49 | + $config = !is_array($subfield[$macro]) ? [] : $subfield[$macro]; |
|
50 | 50 | $this->{$macro}($config, $subfield); |
51 | 51 | } |
52 | 52 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | class MultipleFiles extends Uploader |
11 | 11 | { |
12 | - public static function for(array $field, $configuration) |
|
12 | + public static function for (array $field, $configuration) |
|
13 | 13 | { |
14 | 14 | return (new self($field, $configuration))->multiple(); |
15 | 15 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $value = $value ?? CRUD::getRequest()->file($this->getName()); |
21 | 21 | $previousFiles = $entry->getOriginal($this->getName()) ?? []; |
22 | 22 | |
23 | - if (! is_array($previousFiles) && is_string($previousFiles)) { |
|
23 | + if (!is_array($previousFiles) && is_string($previousFiles)) { |
|
24 | 24 | $previousFiles = json_decode($previousFiles, true); |
25 | 25 | } |
26 | 26 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | if (in_array($previousFile, $filesToDelete)) { |
30 | 30 | Storage::disk($this->getDisk())->delete($previousFile); |
31 | 31 | |
32 | - $previousFiles = Arr::where($previousFiles, function ($value, $key) use ($previousFile) { |
|
32 | + $previousFiles = Arr::where($previousFiles, function($value, $key) use ($previousFile) { |
|
33 | 33 | return $value != $previousFile; |
34 | 34 | }); |
35 | 35 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | { |
185 | 185 | $value = $entry->{$this->name}; |
186 | 186 | |
187 | - if ($this->isMultiple && ! isset($entry->getCasts()[$this->name]) && is_string($value)) { |
|
187 | + if ($this->isMultiple && !isset($entry->getCasts()[$this->name]) && is_string($value)) { |
|
188 | 188 | $entry->{$this->name} = json_decode($value, true); |
189 | 189 | |
190 | 190 | return $entry; |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | public function deleteUploadedFile(Model $entry) |
205 | 205 | { |
206 | 206 | if ($this->deleteWhenEntryIsDeleted) { |
207 | - if (! in_array(SoftDeletes::class, class_uses_recursive($entry), true)) { |
|
207 | + if (!in_array(SoftDeletes::class, class_uses_recursive($entry), true)) { |
|
208 | 208 | $this->performFileDeletion($entry); |
209 | 209 | |
210 | 210 | return; |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $values = $entry->{$this->name}; |
228 | 228 | |
229 | 229 | if ($this->isMultiple) { |
230 | - if (! isset($entry->getCasts()[$this->name]) && is_string($values)) { |
|
230 | + if (!isset($entry->getCasts()[$this->name]) && is_string($values)) { |
|
231 | 231 | $values = json_decode($values, true); |
232 | 232 | } |
233 | 233 | } else { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | */ |
249 | 249 | private function performFileDeletion($entry) |
250 | 250 | { |
251 | - if ($this->isRelationship || ! $this->isRepeatable) { |
|
251 | + if ($this->isRelationship || !$this->isRepeatable) { |
|
252 | 252 | $this->deleteFiles($entry); |
253 | 253 | |
254 | 254 | return; |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * @param array $definition |
265 | 265 | * @return self |
266 | 266 | */ |
267 | - public static function for(array $crudObject, array $definition) |
|
267 | + public static function for (array $crudObject, array $definition) |
|
268 | 268 | { |
269 | 269 | return new static($crudObject, $definition); |
270 | 270 | } |