Completed
Branch master (a89fae)
by Michał
03:16
created
DependencyInjection/Compiler/MonologHandlerOverridePass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function process(ContainerBuilder $container): void
16 16
     {
17 17
         array_map(
18
-            function (Definition $definition) {
18
+            function(Definition $definition) {
19 19
                 if ($definition->getClass() === RavenHandler::class) {
20 20
                     $definition->setClass(Raven::class);
21 21
                 }
Please login to merge, or discard this patch.
Handler/Raven.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         // filter records based on their level
41 41
         $records = array_filter(
42 42
             $records,
43
-            function ($record) use ($level) {
43
+            function($record) use ($level) {
44 44
                 return $record['level'] >= $level;
45 45
             }
46 46
         );
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         // the record with the highest severity is the "main" one
53 53
         $record = array_reduce(
54 54
             $records,
55
-            function ($highest, $record) {
55
+            function($highest, $record) {
56 56
                 if ($record['level'] > $highest['level']) {
57 57
                     return $record;
58 58
                 }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 'category' => $log['channel'],
73 73
                 'message' => $log['message'],
74 74
                 'level' => strtolower($log['level_name']),
75
-                'timestamp' => (float)($date instanceof \DateTime ? $date->format('U.u') : $date),
75
+                'timestamp' => (float) ($date instanceof \DateTime ? $date->format('U.u') : $date),
76 76
             ];
77 77
 
78 78
             if (array_key_exists('context', $log)) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         }
92 92
 
93 93
         if ($logs) {
94
-            $record['context']['logs'] = (string)$this->getBatchFormatter()->formatBatch($logs);
94
+            $record['context']['logs'] = (string) $this->getBatchFormatter()->formatBatch($logs);
95 95
         }
96 96
 
97 97
         $this->handle($record);
Please login to merge, or discard this patch.