We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 10 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Multiple extends BaseAttribute implements SmartAttributeInterface |
||
| 10 | { |
||
| 11 | public static function getDefault(SmartCollectionInterface $attributes) |
||
| 12 | { |
||
| 13 | switch ($attributes->getAttributeValue('relation_type')) { |
||
| 14 | case 'BelongsToMany': |
||
| 15 | case 'HasMany': |
||
| 16 | case 'HasManyThrough': |
||
| 17 | case 'HasOneOrMany': |
||
| 18 | case 'MorphMany': |
||
| 19 | case 'MorphOneOrMany': |
||
| 20 | case 'MorphToMany': |
||
| 21 | return true; |
||
| 22 | default: |
||
| 23 | return false; |
||
| 24 | } |
||
| 25 | |||
| 26 | return false; |
||
| 27 | } |
||
| 28 | |||
| 29 | public static function getValidationRules(SmartCollectionInterface $attributes): array |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function getAttributeName(): string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
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