| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Endpoint extends AbstractHandler |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Determine whether the handler should handle the source |
||
| 16 | * |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | protected function shouldHandleSource(): bool |
||
| 20 | { |
||
| 21 | if (!is_string($this->source)) { |
||
| 22 | return false; |
||
| 23 | } |
||
| 24 | |||
| 25 | if (false === $url = parse_url($this->source)) { |
||
| 26 | return false; |
||
| 27 | } |
||
| 28 | |||
| 29 | return in_array($url['scheme'] ?? null, ['http', 'https']) && isset($url['host']); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Handle the source |
||
| 34 | * |
||
| 35 | * @return Traversable|null |
||
| 36 | */ |
||
| 37 | protected function handleSource(): ?Traversable |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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