We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 7 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RelationType extends BaseAttribute implements SmartAttributeInterface |
||
| 9 | { |
||
| 10 | public static function getDefault(SmartCollectionInterface $attributes) |
||
| 11 | { |
||
| 12 | return $attributes->getAttributeValue('entity') ? app('crud')->inferRelationTypeFromRelationship($attributes->toArray()) : false; |
||
| 13 | } |
||
| 14 | |||
| 15 | public static function getValidationRules(SmartCollectionInterface $attributes): array |
||
| 22 | } |
||
| 23 | } |
||
| 24 | }, |
||
| 25 | ]; |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function getAttributeName(): string |
||
| 31 | } |
||
| 32 | } |
||
| 33 |