@@ -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,14 +38,14 @@ discard block |
||
| 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 |
@@ -68,7 +68,7 @@ discard block |
||
| 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() |
@@ -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): void |
| 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 | } |