Conditions | 6 |
Paths | 5 |
Total Lines | 26 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function get(string $key) |
||
19 | { |
||
20 | $value = $this->getBxConfig()->get($key); |
||
21 | |||
22 | if (! empty($value)) { |
||
23 | return $value; |
||
24 | } |
||
25 | |||
26 | $keyPath = explode('.', $key); |
||
27 | |||
28 | $root = $this->getBxConfig()->get(array_shift($keyPath)); |
||
29 | |||
30 | if (empty($root) || ! is_array($root)) { |
||
31 | return ''; |
||
32 | } |
||
33 | |||
34 | $current = $root; |
||
35 | foreach ($keyPath as $key => $val) { |
||
36 | if (empty($current[$val])) { |
||
37 | return ''; |
||
38 | } |
||
39 | |||
40 | $current = $current[$val]; |
||
41 | } |
||
42 | |||
43 | return $current; |
||
44 | } |
||
61 |
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