Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.7462 |
Changes | 0 |
1 | <?php |
||
28 | 16 | public function addRecord($level, $message, array $context = array()) |
|
29 | { |
||
30 | 16 | if (empty($this->handlers)) { |
|
31 | $emptyHandler = new StreamHandler('php://temp'); |
||
32 | $emptyHandler->setFormatter(new LineFormatter()); |
||
33 | $this->pushHandler($emptyHandler); |
||
34 | } |
||
35 | |||
36 | 16 | return parent::addRecord($level, $message, $context); |
|
37 | } |
||
38 | } |
||
39 |