Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Breaker { |
||
6 | |||
7 | /** |
||
8 | * Destroy your application |
||
9 | * @param string $name |
||
10 | * @param mixed $arguments |
||
11 | * @return exit |
||
|
|||
12 | */ |
||
13 | public static function __callStatic($name, $arguments) |
||
14 | { |
||
15 | $file = isset($arguments[0]) ? $arguments[0] : self::getFilePath(); |
||
16 | |||
17 | $line = isset($arguments[1]) ? $arguments[1] : self::getRandomLine($file); |
||
18 | |||
19 | $parameter = isset($arguments[2]) ? $arguments[2] : null; |
||
20 | |||
21 | call_user_func_array([new Errors, $name], [$file, $line, $parameter]); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * get the path of the calling page |
||
26 | * @return string |
||
27 | */ |
||
28 | protected static function getFilePath() |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * random number |
||
37 | * @param string $path |
||
38 | * @return integer |
||
39 | */ |
||
40 | protected static function getRandomLine($path) |
||
51 |
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