Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
13 | trait HasMethodsTrait |
||
14 | { |
||
15 | /** |
||
16 | * Magic method used to call extension functions. |
||
17 | 11 | * @param string $name |
|
18 | * @param array $arguments |
||
19 | 11 | * @return mixed |
|
20 | 11 | */ |
|
21 | public function __call($name, $arguments) |
||
22 | { |
||
23 | return $this->getFunction($name)->call(null, $arguments); |
||
24 | } |
||
25 | 11 | ||
26 | /** |
||
27 | 11 | * @param $name |
|
28 | 11 | * @param Closure $callable |
|
29 | */ |
||
30 | public function addMethod($name, Closure $callable) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param Closure[] $methods |
||
37 | 11 | */ |
|
38 | public function addMethods(array $methods) |
||
42 | } |
||
43 | } |
||
45 |
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