| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | 1 | public function add(BaseXmlObject $object): self |
|
| 42 | { |
||
| 43 | 1 | $className = mb_strtolower((new ReflectionClass($object))->getShortName()); |
|
| 44 | 1 | $mainElement = $this->mainElement->addChild($className); |
|
| 45 | 1 | foreach ($object as $attributeName => $attributeValue) { |
|
| 46 | 1 | $this->processAttributeNameAndValue($mainElement, $attributeName, $attributeValue); |
|
| 47 | } |
||
| 48 | 1 | return $this; |
|
| 49 | } |
||
| 60 |
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