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