Passed
Push — master ( 1d31a8...642e7a )
by Juuso
03:33
created
src/Factories/MonologFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         return $this->mapConfigurations(
97 97
             $handlerConfigs,
98
-            function ($handlerClass, $handlerConfig) {
98
+            function($handlerClass, $handlerConfig) {
99 99
                 $formatter = $this->getFormatterFromHandlerConfig($handlerConfig);
100 100
                 $processors = $this->getProcessorsFromHandlerConfig($handlerConfig);
101 101
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
         return $this->mapConfigurations(
128 128
             $processorConfigs,
129
-            function ($processor, $config) {
129
+            function($processor, $config) {
130 130
                 if (\is_callable($processor)) {
131 131
                     return $processor;
132 132
                 }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     private function mapConfigurations(array $config, callable $mapFunction): array
148 148
     {
149
-        return collect($config)->map(function ($configValue, $configKey) use ($mapFunction) {
149
+        return collect($config)->map(function($configValue, $configKey) use ($mapFunction) {
150 150
             // In case the key is int assume that just the configurable class name has been given
151 151
             // and supply empty configurations.
152 152
             if (\is_int($configKey)) {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         if (isset($handlerConfig['formatter'])) {
172 172
             return $this->mapConfigurations(
173 173
                 $handlerConfig['formatter'],
174
-                function ($formatterClass, $formatterConfig) {
174
+                function($formatterClass, $formatterConfig) {
175 175
                     return $this->formatterFactory->make($formatterClass, $formatterConfig);
176 176
                 }
177 177
             )[0];
Please login to merge, or discard this patch.
src/CreationStrategies/ReflectionStrategy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace leinonen\Yii2Monolog\CreationStrategies;
6 6
 
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
         }
36 36
 
37 37
         return $this->getReflectionParametersFromReflectionClass()->reject(
38
-            function (ReflectionParameter $constructorParameter) {
38
+            function(ReflectionParameter $constructorParameter) {
39 39
                 return $constructorParameter->isOptional();
40 40
             }
41 41
         )->map(
42
-            function (ReflectionParameter $constructorParameter) {
42
+            function(ReflectionParameter $constructorParameter) {
43 43
                 return $constructorParameter->name;
44 44
             }
45 45
         )->all();
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         }
56 56
 
57 57
         return $this->getReflectionParametersFromReflectionClass()->map(
58
-            function (ReflectionParameter $constructorParameter) use ($config) {
58
+            function(ReflectionParameter $constructorParameter) use ($config) {
59 59
                 return $this->resolveConstructorParameterValue($constructorParameter, $config);
60 60
             }
61 61
         )->all();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getConfigurationCallable(array $config): callable
68 68
     {
69
-        return $config['configure'] ?? function ($instance) {
69
+        return $config['configure'] ?? function($instance) {
70 70
             return $instance;
71 71
         };
72 72
     }
Please login to merge, or discard this patch.
src/MonologTarget.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace leinonen\Yii2Monolog;
6 6
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function export()
71 71
     {
72
-        $this->getMessages()->each(function (Yii2LogMessage $message) {
72
+        $this->getMessages()->each(function(Yii2LogMessage $message) {
73 73
             $this->logger->log($message->getPsr3LogLevel(), $message->getMessage(), $message->getContext());
74 74
         });
75 75
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     private function getMessages(): Collection
107 107
     {
108
-        return collect($this->messages)->map(function ($message) {
108
+        return collect($this->messages)->map(function($message) {
109 109
             return new Yii2LogMessage($message);
110 110
         });
111 111
     }
Please login to merge, or discard this patch.