Conditions | 4 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | protected function getDocument(array $record) |
||
48 | { |
||
49 | $fills = $record['extra']; |
||
50 | $filles['env'] = config('app.ennv'); |
||
51 | $fills['level'] = Str::lower($record['level_name']); |
||
52 | $fills['message'] = $record['message']; |
||
53 | $context = $record['context']; |
||
54 | if (!empty($context)) { |
||
55 | $fills['type'] = array_key_exists('type', $context) ? $context['type'] : self::LOG; |
||
56 | $fills['result'] = array_key_exists('result', $context) ? $context['result'] : self::NEUTRAL; |
||
57 | $fills = array_merge($record['context'], $fills); |
||
58 | } |
||
59 | |||
60 | return $fills; |
||
61 | } |
||
63 |