| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function isCurrent(ContainerInterface $item): bool |
||
| 33 | { |
||
| 34 | if (!$item instanceof MatchableInterface) { |
||
| 35 | return false; |
||
| 36 | } |
||
| 37 | |||
| 38 | // we search matches within URL and route |
||
| 39 | foreach ([$this->request->getPathInfo(), $this->request->get('_route', '')] as $url) { |
||
| 40 | if ($this->voter->matches($url, $item)) { |
||
| 41 | return true; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | return false; |
||
| 46 | } |
||
| 48 |
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