Passed
Branch master (3dda0a)
by Juuso
05:21
created
Category
src/MonologTarget.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;
6 6
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     private function getMessages(): array
106 106
     {
107 107
         return \array_map(
108
-            function ($message) {
108
+            function($message) {
109 109
                 return new Yii2LogMessage($message);
110 110
             },
111 111
             $this->messages
Please login to merge, or discard this patch.
src/CreationStrategies/StreamHandlerStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
src/CreationStrategies/StrategyResolver.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
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function resolve(string $class): CreationStrategyInterface
19 19
     {
20 20
         $shortClassName = (new \ReflectionClass($class))->getShortName();
21
-        $strategyClassName = self::CREATION_STRATEGY_NAMESPACE . "\\{$shortClassName}Strategy";
21
+        $strategyClassName = self::CREATION_STRATEGY_NAMESPACE."\\{$shortClassName}Strategy";
22 22
 
23 23
         if (\class_exists($strategyClassName)) {
24 24
             return new $strategyClassName;
Please login to merge, or discard this patch.
src/CreationStrategies/ReflectionStrategy.php 1 patch
Spacing   +4 added lines, -4 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->getName();
50 50
             },
51 51
             $requiredParameters
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         }
69 69
 
70 70
         return array_map(
71
-            function (ReflectionParameter $constructorParameter) use ($config) {
71
+            function(ReflectionParameter $constructorParameter) use ($config) {
72 72
                 return $this->resolveConstructorParameterValue($constructorParameter, $config);
73 73
             },
74 74
             $this->handlerReflectionClass->getConstructor()->getParameters()
Please login to merge, or discard this patch.
src/CreationStrategies/CreationStrategyInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
src/Factories/MonologFactory.php 1 patch
Spacing   +3 added lines, -3 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
                 }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         if (isset($handlerConfig['formatter'])) {
177 177
             return $this->mapConfigurations(
178 178
                 $handlerConfig['formatter'],
179
-                function ($formatterClass, $formatterConfig) {
179
+                function($formatterClass, $formatterConfig) {
180 180
                     return $this->formatterFactory->make($formatterClass, $formatterConfig);
181 181
                 }
182 182
             )[0];
Please login to merge, or discard this patch.
src/Factories/ProcessorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     private function validateProcessorClass(string $processorClass)
48 48
     {
49
-        if (! (new \ReflectionClass($processorClass))->hasMethod('__invoke')) {
49
+        if ( ! (new \ReflectionClass($processorClass))->hasMethod('__invoke')) {
50 50
             throw new \InvalidArgumentException("{$processorClass} isn't callable. All processor classes must implement the __invoke method.");
51 51
         }
52 52
     }
Please login to merge, or discard this patch.
src/Factories/HandlerFactory.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\Factories;
6 6
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             $handler->setFormatter($formatter);
53 53
         }
54 54
 
55
-        if (! empty($processors)) {
55
+        if ( ! empty($processors)) {
56 56
             foreach ($processors as $processor) {
57 57
                 $handler->pushProcessor($processor);
58 58
             }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     private function validateHandler(string $handlerClass): void
72 72
     {
73 73
         $handlerInterface = HandlerInterface::class;
74
-        if (! (new \ReflectionClass($handlerClass))->implementsInterface($handlerInterface)) {
74
+        if ( ! (new \ReflectionClass($handlerClass))->implementsInterface($handlerInterface)) {
75 75
             throw new \InvalidArgumentException("{$handlerClass} doesn't implement {$handlerInterface}");
76 76
         }
77 77
     }
Please login to merge, or discard this patch.
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): void
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.