We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 6 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public static function getValidationRules(SmartCollectionInterface $attributes): array |
||
| 17 | { |
||
| 18 | return [ |
||
| 19 | 'required', |
||
| 20 | function ($attribute, $value, $fail) use ($attributes) { |
||
| 21 | |||
| 22 | if ($attributes->hasAttribute('entity') && $attributes->getAttributeValue('entity')) { |
||
| 23 | if (! is_string($value)) { |
||
| 24 | $fail('The '.$attribute.' should be a valid model string.'); |
||
| 25 | } |
||
| 26 | |||
| 27 | if (! is_a($value, 'Illuminate\Database\Eloquent\Model', true)) { |
||
| 28 | $fail('The '.$attribute.' should be a valid class that extends Illuminate\Database\Eloquent\Model .'); |
||
| 29 | } |
||
| 30 | }else{ |
||
| 31 | if($value !== false){ |
||
| 32 | $fail('The '.$attribute.' should be either false or a valid class that extends Illuminate\Database\Eloquent\Model.'); |
||
| 33 | } |
||
| 45 |
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