We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 7 |
Paths | 5 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | return []; |
||
25 | } |
||
26 | // set the empty attribute in data |
||
27 | Arr::set($this->data, $attribute, null); |
||
28 | } |
||
29 | |||
30 | $fieldErrors = $this->validateFieldRules($attribute, $value); |
||
31 | |||
32 | if (! empty($value) && ! empty($this->getFileRules())) { |
||
33 | $fileErrors = $this->validateFileRules($attribute, $value); |
||
34 | } |
||
35 | |||
36 | return array_merge($fieldErrors, $fileErrors ?? []); |
||
37 | } |
||
38 | |||
39 | public static function field(string|array|ValidationRule|Rule $rules = []): self |
||
40 | { |
||
41 | return parent::field($rules); |
||
42 | } |
||
44 |