Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 1 | public function createUri($uri) |
|
23 | 2 | { |
|
24 | 1 | if ($uri instanceof UriInterface) { |
|
25 | return $uri; |
||
26 | } elseif (is_string($uri)) { |
||
27 | 1 | if (class_exists(LaminasUri::class)) { |
|
28 | return new LaminasUri($uri); |
||
29 | } |
||
30 | |||
31 | return new ZendUri($uri); |
||
32 | } |
||
33 | |||
34 | throw new \InvalidArgumentException('URI must be a string or UriInterface'); |
||
35 | } |
||
37 |
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