| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | #[Override] |
||
| 35 | public function log(string $message): void |
||
| 36 | 1 | { |
|
| 37 | if ($this->logger === null) { |
||
| 38 | throw new RuntimeException('logger has not been initialized'); |
||
| 39 | 1 | } |
|
| 40 | 1 | ||
| 41 | 1 | $method = LoggerEnum::LEVEL_METHODS[LoggerEnum::LEVEL_INFO]; |
|
| 42 | 1 | $this->logger->$method( |
|
| 43 | $this->parser->parse($message)->getAsText() |
||
| 44 | ); |
||
| 56 |
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