| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 5.667 |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | 188 | #[Override] |
|
| 54 | public function log(string $message): void |
||
| 55 | { |
||
| 56 | 188 | if ($this->doLog) { |
|
| 57 | if ($this->logger === null) { |
||
| 58 | throw new RuntimeException('logger has not been initialized'); |
||
| 59 | } |
||
| 60 | |||
| 61 | $method = LoggerEnum::LEVEL_METHODS[$this->level]; |
||
| 62 | $this->logger->$method($message); |
||
| 63 | } |
||
| 75 |
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