| Total Complexity | 6 | 
| Total Lines | 45 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | final class LinkRelations  | 
            ||
| 17 | { | 
            ||
| 18 | /** @var list<LinkRelation> */  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 19 | private $links;  | 
            ||
| 20 | |||
| 21 | /** @param list<stdClass>|stdClass|null $link */  | 
            ||
| 22 | public function __construct($link = null)  | 
            ||
| 23 |     { | 
            ||
| 24 |         if ($link === null) { | 
            ||
| 25 | $this->links = [];  | 
            ||
| 26 | |||
| 27 | return;  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 |         if (is_array($link)) { | 
            ||
| 31 | $this->links = $this->createLinkRelations($link);  | 
            ||
| 32 | |||
| 33 | return;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | $this->links = [new LinkRelation($link)];  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * @param list<stdClass> $links  | 
            ||
| 41 | *  | 
            ||
| 42 | * @return list<LinkRelation>  | 
            ||
| 43 | */  | 
            ||
| 44 | private function createLinkRelations(array $links): array  | 
            ||
| 45 |     { | 
            ||
| 46 | $linkRelations = [];  | 
            ||
| 47 |         foreach ($links as $link) { | 
            ||
| 48 | $linkRelations[] = new LinkRelation($link);  | 
            ||
| 49 | }  | 
            ||
| 50 | |||
| 51 |         usort($linkRelations, static function (LinkRelation $a, LinkRelation $b): int { | 
            ||
| 52 | return strtoupper($a->rel) <=> strtoupper($b->rel);  | 
            ||
| 53 | });  | 
            ||
| 54 | |||
| 55 | return $linkRelations;  | 
            ||
| 56 | }  | 
            ||
| 57 | |||
| 58 | public function __toString(): string  | 
            ||
| 61 | }  | 
            ||
| 62 | }  | 
            ||
| 63 | 
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