| Conditions | 3 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 38 | private function write($type, $message) |
||
| 39 | { |
||
| 40 | if ($this->destination === null) { |
||
| 41 | return; |
||
| 42 | } |
||
| 43 | $pid = getmypid(); |
||
| 44 | fputs( |
||
| 45 | $this->destination, |
||
| 46 | sprintf( |
||
| 47 | '[%s][%s][%d(%s)] %s', |
||
| 48 | date('Y-m-d H:i:s'), |
||
| 49 | $type, |
||
| 50 | $pid, |
||
| 51 | ($this->ownerPid === $pid) ? 'p' : 'c', |
||
| 52 | $message . PHP_EOL |
||
| 53 | ) |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | |||
| 79 |