| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 64 | 328 | public function write(LogEntry $log) |
|
| 65 | { |
||
| 66 | 328 | $message = (string) $log; |
|
| 67 | |||
| 68 | 328 | if(!$this->deferred && $this->type == self::FILE) { |
|
| 69 | 164 | $message .= $log->formatter->separator; |
|
| 70 | 41 | } |
|
| 71 | |||
| 72 | 328 | return error_log( |
|
| 73 | 328 | $message, |
|
| 74 | 328 | $this->type, |
|
| 75 | 328 | $this->destination, |
|
| 76 | 328 | $this->headers |
|
| 77 | 82 | ); |
|
| 78 | } |
||
| 79 | |||
| 80 | } |