Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class StuLogger |
||
11 | { |
||
12 | private static ?Logger $logger = null; |
||
13 | |||
14 | public static function log(string $message): void |
||
15 | { |
||
16 | $method = LoggerEnum::LEVEL_METHODS[LoggerEnum::LEVEL_INFO]; |
||
|
|||
17 | self::getLogger()->$method($message); |
||
18 | } |
||
19 | |||
20 | /** @param string|int|float $args */ |
||
21 | public static function logf(string $information, ...$args): void |
||
22 | { |
||
23 | self::log(vsprintf( |
||
24 | $information, |
||
25 | $args |
||
26 | )); |
||
27 | } |
||
28 | |||
29 | private static function getLogger(): Logger |
||
44 | } |
||
45 | } |
||
46 |
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