| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 11 | final class LoggerUtilFactory implements LoggerUtilFactoryInterface |
||
| 12 | { |
||
| 13 | 2 | public function __construct( |
|
| 14 | private StuConfigInterface $config, |
||
| 15 | private Parser $parser |
||
| 16 | ) { |
||
| 17 | 2 | } |
|
| 18 | |||
| 19 | 9 | #[Override] |
|
| 20 | public function getLoggerUtil(bool $doDefaultInit = false): LoggerUtilInterface |
||
| 21 | { |
||
| 22 | 9 | $loggerUtil = new LoggerUtil( |
|
| 23 | 9 | $this->config |
|
| 24 | 9 | ); |
|
| 25 | |||
| 26 | 9 | if ($doDefaultInit) { |
|
| 27 | 1 | $loggerUtil->init('STU', LoggerEnum::LEVEL_ERROR); |
|
| 28 | } |
||
| 29 | |||
| 30 | 9 | return $loggerUtil; |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | #[Override] |
|
| 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