Completed
Push — master ( a89fae...121794 )
by Michał
03:00
created
DependencyInjection/MonologSentryExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         if (\is_array($configs['tags'])) {
70 70
             foreach ($configs['tags'] as $tag => ['value' => $value, 'name' => $name]) {
71
-                $tagName = $name ?: (string)$tag;
71
+                $tagName = $name ?: (string) $tag;
72 72
                 $container->setDefinition(
73 73
                     "dziki.monolog_sentry_bundle.{$tag}_appending_processor",
74 74
                     new Definition(
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
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.