Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | 1 | public function format(array $record) |
|
12 | { |
||
13 | 1 | $record = parent::format($record); |
|
14 | 1 | $formatted = [ |
|
15 | 1 | 'datetime' => $record['datetime'], |
|
16 | 1 | 'message' => $record['message'], |
|
17 | 1 | 'direction' => $record['direction'], |
|
18 | 1 | 'routing' => $record['routing'], |
|
19 | 1 | 'model' => $record['model'], |
|
20 | 1 | 'event' => $record['event'], |
|
21 | 1 | 'count' => count($record['attributes']), |
|
22 | 1 | ]; |
|
23 | |||
24 | 1 | return Utils::jsonEncode($formatted, Utils::DEFAULT_JSON_FLAGS, true) . "\n"; |
|
25 | } |
||
27 |