Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
58 | 4 | public function getHandlers() |
|
59 | { |
||
60 | 4 | if (null === $this->handlers) { |
|
61 | 4 | $handlers = []; |
|
62 | |||
63 | 4 | $path = $this->config->getLogFilePath(); |
|
64 | 4 | if (null !== $path) { |
|
65 | 2 | $handlers[] = new StreamHandler($path); |
|
66 | 1 | } |
|
67 | |||
68 | 4 | $this->handlers = $handlers; |
|
69 | 2 | } |
|
70 | |||
71 | 4 | return $this->handlers; |
|
72 | } |
||
73 | |||
98 |