| Total Complexity | 4 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | trait HasOptionalCountry |
||
| 15 | { |
||
| 16 | #[ORM\Column(type: 'string', length:3, nullable: true)] |
||
| 17 | #[Field(rules: 'custom', fieldClass: CountrySelect::class)] |
||
| 18 | #[Visibility('all')] |
||
| 19 | private ?string $country = null; |
||
| 20 | |||
| 21 | public function getCountry(): ?Country |
||
| 22 | { |
||
| 23 | return $this->country ? CountryFactory::generate($this->country) : null; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setCountry(mixed $country): void |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
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