Completed
Push — master ( 596585...dae15c )
by Juuso
04:50
created
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/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/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.
src/Factories/GenericStrategyBasedFactory.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
         $givenParameters = \array_keys($config);
69 69
 
70 70
         foreach ($requiredParameters as $requiredParameter) {
71
-            if (! \in_array($requiredParameter, $givenParameters, true)) {
71
+            if ( ! \in_array($requiredParameter, $givenParameters, true)) {
72 72
                 throw new InvalidConfigException(
73 73
                     "The parameter '{$requiredParameter}' is required for {$className}"
74 74
                 );
Please login to merge, or discard this patch.
src/Yii2LogMessage.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;
6 6
 
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.