| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | 4 | public function format(Item $item): string |
|
| 61 | { |
||
| 62 | 4 | $message = $this->interpolate( |
|
| 63 | 4 | $item->getMessage(), |
|
| 64 | 4 | $item->getContext() |
|
| 65 | ); |
||
| 66 | |||
| 67 | 4 | return JsonHelper::encode( |
|
| 68 | [ |
||
| 69 | 4 | "type" => $item->getName(), |
|
| 70 | 4 | "message" => $message, |
|
| 71 | 4 | "timestamp" => $this->getFormattedDate(), |
|
| 72 | ] |
||
| 88 |