| Total Complexity | 3 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | class CurrencyUpdateRequest extends BaseFormRequest  | 
            ||
| 10 | { | 
            ||
| 11 | public function authorize(): bool  | 
            ||
| 14 | }  | 
            ||
| 15 | |||
| 16 | public function rules(): array  | 
            ||
| 17 |     { | 
            ||
| 18 | return [  | 
            ||
| 19 | 'code' => [  | 
            ||
| 20 | 'nullable',  | 
            ||
| 21 | 'string',  | 
            ||
| 22 | 'min:3',  | 
            ||
| 23 | 'max:3',  | 
            ||
| 24 | Rule::unique((new Currency())->getTable(), 'code')  | 
            ||
| 25 |                     ->whereNot('code', $this->getCurrency()->code->value), | 
            ||
| 26 | ],  | 
            ||
| 27 | 'name' => 'nullable|string',  | 
            ||
| 28 | 'symbol' => 'nullable|string',  | 
            ||
| 29 | 'thousands_separator' => [  | 
            ||
| 30 | 'nullable',  | 
            ||
| 31 | 'string',  | 
            ||
| 32 |                 Rule::in(',', '.'), | 
            ||
| 33 | ],  | 
            ||
| 34 | 'decimal_separator' => [  | 
            ||
| 35 | 'nullable',  | 
            ||
| 36 | 'string',  | 
            ||
| 37 |                 Rule::in(',', '.'), | 
            ||
| 38 | ],  | 
            ||
| 39 | 'decimals' => 'nullable|int|min:0|max:6',  | 
            ||
| 40 | 'space_after_symbol' => 'nullable|bool',  | 
            ||
| 41 | 'is_active' => 'nullable|bool',  | 
            ||
| 42 | ];  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | public function getCurrency(): Currency  | 
            ||
| 48 | }  | 
            ||
| 49 | }  | 
            ||
| 50 | 
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths