Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 20 | protected function getLogger(): Logger |
|
25 | { |
||
26 | 20 | if ($this->logger === null) { |
|
27 | 20 | $this->logger = new Logger('application'); |
|
28 | 20 | $this->logger->pushHandler(new StreamHandler($GLOBALS['config']['log']['file'], (int)$GLOBALS['config']['log']['level'])); |
|
29 | } |
||
30 | 20 | return $this->logger; |
|
31 | } |
||
32 | } |
||
33 |