@@ -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,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 |
@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -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 | } |