We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | { |
| 191 | 191 | $value = $entry->{$this->name}; |
| 192 | 192 | |
| 193 | - if ($this->isMultiple && ! isset($entry->getCasts()[$this->name]) && is_string($value)) { |
|
| 193 | + if ($this->isMultiple && !isset($entry->getCasts()[$this->name]) && is_string($value)) { |
|
| 194 | 194 | $entry->{$this->name} = json_decode($value, true); |
| 195 | 195 | |
| 196 | 196 | return $entry; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | public function deleteUploadedFile(Model $entry) |
| 211 | 211 | { |
| 212 | 212 | if ($this->deleteWhenEntryIsDeleted) { |
| 213 | - if (! in_array(SoftDeletes::class, class_uses_recursive($entry), true)) { |
|
| 213 | + if (!in_array(SoftDeletes::class, class_uses_recursive($entry), true)) { |
|
| 214 | 214 | $this->performFileDeletion($entry); |
| 215 | 215 | |
| 216 | 216 | return; |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | if ($this->isMultiple) { |
| 236 | 236 | // ensure we have an array of values when field is not casted in model. |
| 237 | - if (! isset($entry->getCasts()[$this->name]) && is_string($values)) { |
|
| 237 | + if (!isset($entry->getCasts()[$this->name]) && is_string($values)) { |
|
| 238 | 238 | $values = json_decode($values, true); |
| 239 | 239 | } |
| 240 | 240 | foreach ($values as $value) { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | */ |
| 258 | 258 | private function performFileDeletion($entry) |
| 259 | 259 | { |
| 260 | - if ($this->isRelationship || ! $this->isRepeatable) { |
|
| 260 | + if ($this->isRelationship || !$this->isRepeatable) { |
|
| 261 | 261 | $this->deleteFiles($entry); |
| 262 | 262 | |
| 263 | 263 | return; |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | * @param array $definition |
| 274 | 274 | * @return self |
| 275 | 275 | */ |
| 276 | - public static function for(array $crudObject, array $definition) |
|
| 276 | + public static function for (array $crudObject, array $definition) |
|
| 277 | 277 | { |
| 278 | 278 | return new static($crudObject, $definition); |
| 279 | 279 | } |