| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __invoke(string $varName, array $query, InjectorInterface $injector) |
||
| 27 | { |
||
| 28 | unset($injector); |
||
| 29 | if (isset($query[$varName])) { |
||
| 30 | return $query[$varName]; |
||
| 31 | } |
||
| 32 | |||
| 33 | // try camelCase variable name |
||
| 34 | $snakeName = ltrim(strtolower((string) preg_replace('/[A-Z]/', '_\0', $varName)), '_'); |
||
| 35 | |||
| 36 | return $query[$snakeName] ?? $this->defaultValue; |
||
| 37 | } |
||
| 39 |
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