Completed
Push — master ( 0645ff...69fe3d )
by Juuso
03:39
created
src/Factories/FormatterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     private function validateFormatter(string $formatterClass)
50 50
     {
51 51
         $formatterInterface = FormatterInterface::class;
52
-        if (! (new \ReflectionClass($formatterClass))->implementsInterface($formatterInterface)) {
52
+        if ( ! (new \ReflectionClass($formatterClass))->implementsInterface($formatterInterface)) {
53 53
             throw new \InvalidArgumentException("{$formatterClass} doesn't implement {$formatterInterface}");
54 54
         }
55 55
     }
Please login to merge, or discard this patch.
src/Factories/HandlerFactory.php 1 patch
Spacing   +2 added lines, -2 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\Factories;
6 6
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     private function validateHandler(string $handlerClass)
70 70
     {
71 71
         $handlerInterface = HandlerInterface::class;
72
-        if (! (new \ReflectionClass($handlerClass))->implementsInterface($handlerInterface)) {
72
+        if ( ! (new \ReflectionClass($handlerClass))->implementsInterface($handlerInterface)) {
73 73
             throw new \InvalidArgumentException("{$handlerClass} doesn't implement {$handlerInterface}");
74 74
         }
75 75
     }
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
 
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
         $requiredParameters = \array_values(
39 39
             \array_filter(
40 40
                 $this->handlerReflectionClass->getConstructor()->getParameters(),
41
-                function (ReflectionParameter $constructorParameter) {
41
+                function(ReflectionParameter $constructorParameter) {
42 42
                     return ! $constructorParameter->isOptional();
43 43
                 }
44 44
             )
45 45
         );
46 46
 
47 47
         return \array_map(
48
-            function (ReflectionParameter $parameter) {
48
+            function(ReflectionParameter $parameter) {
49 49
                 return $parameter->name;
50 50
             },
51 51
             $requiredParameters
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         }
63 63
 
64 64
         return array_map(
65
-            function (ReflectionParameter $constructorParameter) use ($config) {
65
+            function(ReflectionParameter $constructorParameter) use ($config) {
66 66
                 return $this->resolveConstructorParameterValue($constructorParameter, $config);
67 67
             },
68 68
             $this->handlerReflectionClass->getConstructor()->getParameters()
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function getConfigurationCallable(array $config): callable
76 76
     {
77
-        return $config['configure'] ?? function ($instance) { return $instance; };
77
+        return $config['configure'] ?? function($instance) { return $instance; };
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
src/CreationStrategies/StreamHandlerStrategy.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function getConfigurationCallable(array $config): callable
40 40
     {
41
-        return function (StreamHandler $instance) {
41
+        return function(StreamHandler $instance) {
42 42
             return $instance;
43 43
         };
44 44
     }
Please login to merge, or discard this patch.