| 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 | 6 | public function getHandlers() |
|
| 59 | { |
||
| 60 | 6 | if (null === $this->handlers) { |
|
| 61 | 6 | $handlers = []; |
|
| 62 | |||
| 63 | 6 | $path = $this->config->getLogFilePath(); |
|
| 64 | 6 | if (null !== $path) { |
|
| 65 | 2 | $handlers[] = new StreamHandler($path); |
|
| 66 | 1 | } |
|
| 67 | |||
| 68 | 6 | $this->handlers = $handlers; |
|
| 69 | 3 | } |
|
| 70 | |||
| 71 | 6 | return $this->handlers; |
|
| 72 | } |
||
| 73 | |||
| 94 |