| Conditions | 5 |
| Paths | 6 |
| Total Lines | 23 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function parseUrl($url) : array |
||
| 43 | { |
||
| 44 | $url = (string) $url; |
||
| 45 | |||
| 46 | $parsedUrl = $this->doParseUrl($url); |
||
| 47 | |||
| 48 | if ($parsedUrl === []) { |
||
| 49 | throw new InvalidArgumentException(sprintf('Invalid url %s', $url)); |
||
| 50 | } |
||
| 51 | |||
| 52 | $parsedUrl = array_merge(self::$defaultParts, $parsedUrl); |
||
| 53 | |||
| 54 | if (isset($parsedUrl['host'])) { |
||
| 55 | $parsedUrl['canonical'] = implode('.', array_reverse(explode('.', $parsedUrl['host']))) . ($parsedUrl['path'] ?? '') . (isset($parsedUrl['query']) ? '?' . $parsedUrl['query'] : ''); |
||
| 56 | |||
| 57 | $parsedUrl['resource'] = $parsedUrl['path'] ?? ''; |
||
| 58 | |||
| 59 | if (isset($parsedUrl['query'])) { |
||
| 60 | $parsedUrl['resource'] .= '?' . $parsedUrl['query']; |
||
| 61 | } |
||
| 62 | } |
||
| 63 | |||
| 64 | return $parsedUrl; |
||
| 65 | } |
||
| 77 |
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