Completed
Push — master ( bc7898...55dd45 )
by Juuso
05:05 queued 01:59
created
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
 
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
         $requiredParameters = \array_values(
37 37
             \array_filter(
38 38
                 $this->handlerReflectionClass->getConstructor()->getParameters(),
39
-                function (ReflectionParameter $constructorParameter) {
39
+                function(ReflectionParameter $constructorParameter) {
40 40
                     return ! $constructorParameter->isOptional();
41 41
                 }
42 42
             )
43 43
         );
44 44
 
45 45
         return \array_map(
46
-            function (ReflectionParameter $parameter) {
46
+            function(ReflectionParameter $parameter) {
47 47
                 return $parameter->name;
48 48
             },
49 49
             $requiredParameters
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         return array_map(
63
-            function (ReflectionParameter $constructorParameter) use ($config) {
63
+            function(ReflectionParameter $constructorParameter) use ($config) {
64 64
                 return $this->resolveConstructorParameterValue($constructorParameter, $config);
65 65
             },
66 66
             $this->handlerReflectionClass->getConstructor()->getParameters()
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getConfigurationCallable(array $config): callable
74 74
     {
75
-        return $config['configure'] ?? function ($instance) {
75
+        return $config['configure'] ?? function($instance) {
76 76
             return $instance;
77 77
         };
78 78
     }
Please login to merge, or discard this patch.