@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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; |
@@ -95,7 +95,7 @@ discard block |
||
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 |
||
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 |
||
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]; |
@@ -46,7 +46,7 @@ |
||
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 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace leinonen\Yii2Monolog; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -49,7 +49,7 @@ |
||
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 | } |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 | } |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 | } |