| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 19 | 13 | public function __construct(iterable $attributes = []) |
|
| 20 | { |
||
| 21 | 13 | $mappedAttributes = []; |
|
| 22 | /** @var AttributeInterface $attribute */ |
||
| 23 | 13 | foreach ($attributes as $attribute) { |
|
| 24 | 12 | $attributeName = $attribute->getName(); |
|
| 25 | 12 | Assert::that($mappedAttributes)->keyNotExists( |
|
| 26 | 12 | $attributeName, |
|
| 27 | 12 | "Attribute name '$attributeName' is already defined." |
|
| 28 | ); |
||
| 29 | 12 | $mappedAttributes[$attributeName] = $attribute; |
|
| 30 | } |
||
| 31 | |||
| 32 | 12 | $this->init($mappedAttributes, [AttributeInterface::class]); |
|
| 33 | 12 | } |
|
| 35 |
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