We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -18,10 +18,10 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | public function validate(string $attribute, mixed $value, Closure $fail): void |
| 20 | 20 | { |
| 21 | - if (! is_array($value)) { |
|
| 21 | + if (!is_array($value)) { |
|
| 22 | 22 | try { |
| 23 | 23 | $value = json_decode($value, true); |
| 24 | - } catch(\Exception $e) { |
|
| 24 | + } catch (\Exception $e) { |
|
| 25 | 25 | $fail('Unable to determine the value type'); |
| 26 | 26 | |
| 27 | 27 | return; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $filesToClear = CrudPanelFacade::getRequest()->input('clear_'.$attribute) ?? []; |
| 34 | 34 | $previousFiles = CrudPanelFacade::getCurrentEntry()->{$attribute} ?? []; |
| 35 | 35 | |
| 36 | - if (is_string($previousFiles) && ! isset(CrudPanelFacade::getCurrentEntry()->getCasts()[$attribute])) { |
|
| 36 | + if (is_string($previousFiles) && !isset(CrudPanelFacade::getCurrentEntry()->getCasts()[$attribute])) { |
|
| 37 | 37 | $previousFiles = json_decode($previousFiles, true); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -38,13 +38,13 @@ discard block |
||
| 38 | 38 | { |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function arrayRules(string|array|File $rules): self |
|
| 41 | + public function arrayRules(string | array | File $rules): self |
|
| 42 | 42 | { |
| 43 | 43 | if (is_string($rules)) { |
| 44 | 44 | $rules = explode('|', $rules); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if (! in_array('array', $rules)) { |
|
| 47 | + if (!in_array('array', $rules)) { |
|
| 48 | 48 | $rules[] = 'array'; |
| 49 | 49 | } |
| 50 | 50 | |
@@ -53,12 +53,12 @@ discard block |
||
| 53 | 53 | return $this; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - public function fileRules(string|array|File $rules): self |
|
| 56 | + public function fileRules(string | array | File $rules): self |
|
| 57 | 57 | { |
| 58 | 58 | if (is_string($rules)) { |
| 59 | 59 | $rules = explode('|', $rules); |
| 60 | 60 | } |
| 61 | - if (! is_array($rules)) { |
|
| 61 | + if (!is_array($rules)) { |
|
| 62 | 62 | $rules = [$rules]; |
| 63 | 63 | } |
| 64 | 64 | $this->fileRules = $rules; |