@@ -28,7 +28,7 @@ |
||
| 28 | 28 | ->arrayPrototype() |
| 29 | 29 | ->beforeNormalization() |
| 30 | 30 | ->ifString() |
| 31 | - ->then(function ($value) { |
|
| 31 | + ->then(function($value) { |
|
| 32 | 32 | return array('value' => $value); |
| 33 | 33 | }) |
| 34 | 34 | ->end() |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | // filter records based on their level |
| 19 | 19 | $records = array_filter( |
| 20 | 20 | $records, |
| 21 | - function ($record) use ($level) { |
|
| 21 | + function($record) use ($level) { |
|
| 22 | 22 | return $record['level'] >= $level; |
| 23 | 23 | } |
| 24 | 24 | ); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | // the record with the highest severity is the "main" one |
| 31 | 31 | $record = array_reduce( |
| 32 | 32 | $records, |
| 33 | - function ($highest, $record) { |
|
| 33 | + function($highest, $record) { |
|
| 34 | 34 | if ($record['level'] > $highest['level']) { |
| 35 | 35 | return $record; |
| 36 | 36 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | 'category' => $log['channel'], |
| 49 | 49 | 'message' => $log['message'], |
| 50 | 50 | 'level' => strtolower($log['level_name']), |
| 51 | - 'timestamp' => (float)$log['datetime']->format('U.u'), |
|
| 51 | + 'timestamp' => (float) $log['datetime']->format('U.u'), |
|
| 52 | 52 | ]; |
| 53 | 53 | |
| 54 | 54 | if (array_key_exists('context', $log)) { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | if ($logs) { |
| 70 | - $record['context']['logs'] = (string)$this->getBatchFormatter()->formatBatch($logs); |
|
| 70 | + $record['context']['logs'] = (string) $this->getBatchFormatter()->formatBatch($logs); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | $this->handle($record); |