We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | private bool $deleteWhenEntryIsDeleted = true; |
27 | 27 | |
28 | - private bool|string $attachedToFakeField = false; |
|
28 | + private bool | string $attachedToFakeField = false; |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Cloud disks have the ability to generate temporary URLs to files, should we do it? |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /******************************* |
58 | 58 | * Static methods |
59 | 59 | *******************************/ |
60 | - public static function for(array $crudObject, array $definition): UploaderInterface |
|
60 | + public static function for (array $crudObject, array $definition): UploaderInterface |
|
61 | 61 | { |
62 | 62 | return new static($crudObject, $definition); |
63 | 63 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | public function deleteUploadedFiles(Model $entry): void |
99 | 99 | { |
100 | 100 | if ($this->deleteWhenEntryIsDeleted) { |
101 | - if (! in_array(SoftDeletes::class, class_uses_recursive($entry), true)) { |
|
101 | + if (!in_array(SoftDeletes::class, class_uses_recursive($entry), true)) { |
|
102 | 102 | $this->performFileDeletion($entry); |
103 | 103 | |
104 | 104 | return; |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | public function getPreviousFiles(Model $entry): mixed |
171 | 171 | { |
172 | - if (! $this->attachedToFakeField) { |
|
172 | + if (!$this->attachedToFakeField) { |
|
173 | 173 | return $this->getOriginalValue($entry); |
174 | 174 | } |
175 | 175 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $value = $entry->{$this->getAttributeName()}; |
209 | 209 | |
210 | 210 | if ($this->handleMultipleFiles) { |
211 | - if (! isset($entry->getCasts()[$this->getName()]) && is_string($value)) { |
|
211 | + if (!isset($entry->getCasts()[$this->getName()]) && is_string($value)) { |
|
212 | 212 | $entry->{$this->getAttributeName()} = json_decode($value, true); |
213 | 213 | } |
214 | 214 | |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | |
237 | 237 | if ($this->handleMultipleFiles) { |
238 | 238 | // ensure we have an array of values when field is not casted in model. |
239 | - if (! isset($entry->getCasts()[$this->name]) && is_string($values)) { |
|
239 | + if (!isset($entry->getCasts()[$this->name]) && is_string($values)) { |
|
240 | 240 | $values = json_decode($values, true); |
241 | 241 | } |
242 | 242 | foreach ($values as $value) { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | |
253 | 253 | private function performFileDeletion(Model $entry) |
254 | 254 | { |
255 | - if (! $this->handleRepeatableFiles) { |
|
255 | + if (!$this->handleRepeatableFiles) { |
|
256 | 256 | $this->deleteFiles($entry); |
257 | 257 | |
258 | 258 | return; |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | { |
276 | 276 | $previousValue = $entry->getOriginal($field ?? $this->getName()); |
277 | 277 | |
278 | - if (! $previousValue) { |
|
278 | + if (!$previousValue) { |
|
279 | 279 | return $previousValue; |
280 | 280 | } |
281 | 281 |