We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | // if the attribute is not set in the request, and an entry exists, |
| 22 | 22 | // we will check if there is a previous value, as this field might not have changed. |
| 23 | - if (! Arr::has($this->data, $attribute) && $entry) { |
|
| 23 | + if (!Arr::has($this->data, $attribute) && $entry) { |
|
| 24 | 24 | if (str_contains($attribute, '.') && get_class($entry) === get_class(CrudPanelFacade::getModel())) { |
| 25 | 25 | $previousValue = Arr::get($this->data, '_order_'.Str::before($attribute, '.')); |
| 26 | 26 | $previousValue = Arr::get($previousValue, Str::after($attribute, '.')); |
@@ -37,20 +37,20 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | // if the value is an uploaded file, or the attribute is not |
| 39 | 39 | // set in the request, we force fill the data with the value |
| 40 | - if($value instanceof UploadedFile || ! Arr::has($this->data, $attribute)) { |
|
| 40 | + if ($value instanceof UploadedFile || !Arr::has($this->data, $attribute)) { |
|
| 41 | 41 | Arr::set($this->data, $attribute, $value); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $fieldErrors = $this->validateFieldRules($attribute); |
| 45 | 45 | |
| 46 | - if (! empty($value) && ! empty($this->getFileRules())) { |
|
| 46 | + if (!empty($value) && !empty($this->getFileRules())) { |
|
| 47 | 47 | $fileErrors = $this->validateFileRules($attribute, $value); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | return array_merge($fieldErrors, $fileErrors ?? []); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - public static function field(string|array|ValidationRule|Rule $rules = []): self |
|
| 53 | + public static function field(string | array | ValidationRule | Rule $rules = []): self |
|
| 54 | 54 | { |
| 55 | 55 | return parent::field($rules); |
| 56 | 56 | } |