Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.7462 |
Changes | 0 |
1 | <?php |
||
38 | 16 | public function addRecord($level, $message, array $context = array()) |
|
39 | { |
||
40 | 16 | if (empty($this->handlers)) { |
|
41 | $emptyHandler = new StreamHandler('php://temp'); |
||
42 | $emptyHandler->setFormatter(new LineFormatter()); |
||
43 | $this->pushHandler($emptyHandler); |
||
44 | } |
||
45 | |||
46 | 16 | return parent::addRecord($this->convertStatusCodeToLevel($level), $message, $context); |
|
47 | } |
||
48 | } |
||
49 |