@@ -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 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | */ |
| 147 | 147 | private function mapConfigurations(array $config, callable $mapFunction): array |
| 148 | 148 | { |
| 149 | - return collect($config)->map(function ($configValue, $configKey) use ($mapFunction) { |
|
| 149 | + return collect($config)->map(function($configValue, $configKey) use ($mapFunction) { |
|
| 150 | 150 | // In case the key is int assume that just the configurable class name has been given |
| 151 | 151 | // and supply empty configurations. |
| 152 | 152 | if (\is_int($configKey)) { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | if (isset($handlerConfig['formatter'])) { |
| 172 | 172 | return $this->mapConfigurations( |
| 173 | 173 | $handlerConfig['formatter'], |
| 174 | - function ($formatterClass, $formatterConfig) { |
|
| 174 | + function($formatterClass, $formatterConfig) { |
|
| 175 | 175 | return $this->formatterFactory->make($formatterClass, $formatterConfig); |
| 176 | 176 | } |
| 177 | 177 | )[0]; |
@@ -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 | |
@@ -35,11 +35,11 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | return $this->getReflectionParametersFromReflectionClass()->reject( |
| 38 | - function (ReflectionParameter $constructorParameter) { |
|
| 38 | + function(ReflectionParameter $constructorParameter) { |
|
| 39 | 39 | return $constructorParameter->isOptional(); |
| 40 | 40 | } |
| 41 | 41 | )->map( |
| 42 | - function (ReflectionParameter $constructorParameter) { |
|
| 42 | + function(ReflectionParameter $constructorParameter) { |
|
| 43 | 43 | return $constructorParameter->name; |
| 44 | 44 | } |
| 45 | 45 | )->all(); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | return $this->getReflectionParametersFromReflectionClass()->map( |
| 58 | - function (ReflectionParameter $constructorParameter) use ($config) { |
|
| 58 | + function(ReflectionParameter $constructorParameter) use ($config) { |
|
| 59 | 59 | return $this->resolveConstructorParameterValue($constructorParameter, $config); |
| 60 | 60 | } |
| 61 | 61 | )->all(); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function getConfigurationCallable(array $config): callable |
| 68 | 68 | { |
| 69 | - return $config['configure'] ?? function ($instance) { |
|
| 69 | + return $config['configure'] ?? function($instance) { |
|
| 70 | 70 | return $instance; |
| 71 | 71 | }; |
| 72 | 72 | } |
@@ -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 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function export() |
| 71 | 71 | { |
| 72 | - $this->getMessages()->each(function (Yii2LogMessage $message) { |
|
| 72 | + $this->getMessages()->each(function(Yii2LogMessage $message) { |
|
| 73 | 73 | $this->logger->log($message->getPsr3LogLevel(), $message->getMessage(), $message->getContext()); |
| 74 | 74 | }); |
| 75 | 75 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | private function getMessages(): Collection |
| 107 | 107 | { |
| 108 | - return collect($this->messages)->map(function ($message) { |
|
| 108 | + return collect($this->messages)->map(function($message) { |
|
| 109 | 109 | return new Yii2LogMessage($message); |
| 110 | 110 | }); |
| 111 | 111 | } |