@@ -15,6 +15,6 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function getConfig(): array |
| 17 | 17 | { |
| 18 | - return require __DIR__ . '/../config/module.config.php'; |
|
| 18 | + return require __DIR__.'/../config/module.config.php'; |
|
| 19 | 19 | } |
| 20 | 20 | } |
@@ -33,10 +33,10 @@ |
||
| 33 | 33 | $options['format'] ?? null, |
| 34 | 34 | null, |
| 35 | 35 | isset($options['allow_line_breaks']) |
| 36 | - ? (bool)$options['allow_line_breaks'] |
|
| 36 | + ? (bool) $options['allow_line_breaks'] |
|
| 37 | 37 | : false, |
| 38 | 38 | isset($options['ignore_empty_context_and_extra']) |
| 39 | - ? (bool)$options['ignore_empty_context_and_extra'] |
|
| 39 | + ? (bool) $options['ignore_empty_context_and_extra'] |
|
| 40 | 40 | : false, |
| 41 | 41 | ); |
| 42 | 42 | |
@@ -26,20 +26,20 @@ |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | if (isset($options['max_normalize_depth'])) { |
| 29 | - $formatter->setMaxNormalizeDepth((int)$options['max_normalize_depth']); |
|
| 29 | + $formatter->setMaxNormalizeDepth((int) $options['max_normalize_depth']); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | if (isset($options['max_normalize_item_count'])) { |
| 33 | - $formatter->setMaxNormalizeItemCount((int)$options['max_normalize_item_count']); |
|
| 33 | + $formatter->setMaxNormalizeItemCount((int) $options['max_normalize_item_count']); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | if (isset($options['json_pretty_print'])) { |
| 37 | - $formatter->setJsonPrettyPrint((bool)$options['json_pretty_print']); |
|
| 37 | + $formatter->setJsonPrettyPrint((bool) $options['json_pretty_print']); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | if (!empty($options['json_encode_options']) && is_array($options['json_encode_options'])) { |
| 41 | 41 | foreach ($options['json_encode_options'] as $jsonEncodeOption) { |
| 42 | - $formatter->addJsonEncodeOption((int)$jsonEncodeOption); |
|
| 42 | + $formatter->addJsonEncodeOption((int) $jsonEncodeOption); |
|
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -32,11 +32,11 @@ |
||
| 32 | 32 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
| 33 | 33 | |
| 34 | 34 | $realUsage = isset($options['real_usage']) |
| 35 | - ? (bool)$options['real_usage'] |
|
| 35 | + ? (bool) $options['real_usage'] |
|
| 36 | 36 | : true; |
| 37 | 37 | |
| 38 | 38 | $useFormatting = isset($options['use_formatting']) |
| 39 | - ? (bool)$options['use_formatting'] |
|
| 39 | + ? (bool) $options['use_formatting'] |
|
| 40 | 40 | : true; |
| 41 | 41 | |
| 42 | 42 | return new MemoryUsageProcessor($realUsage, $useFormatting); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | ? $options['date_format'] |
| 37 | 37 | : null, |
| 38 | 38 | isset($options['remove_used_context_fields']) |
| 39 | - ? (bool)$options['remove_used_context_fields'] |
|
| 39 | + ? (bool) $options['remove_used_context_fields'] |
|
| 40 | 40 | : false |
| 41 | 41 | ); |
| 42 | 42 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
| 30 | 30 | |
| 31 | 31 | return new UidProcessor( |
| 32 | - isset($options['length']) ? (int)$options['length'] : 7 |
|
| 32 | + isset($options['length']) ? (int) $options['length'] : 7 |
|
| 33 | 33 | ); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -32,11 +32,11 @@ |
||
| 32 | 32 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
| 33 | 33 | |
| 34 | 34 | $realUsage = isset($options['real_usage']) |
| 35 | - ? (bool)$options['real_usage'] |
|
| 35 | + ? (bool) $options['real_usage'] |
|
| 36 | 36 | : true; |
| 37 | 37 | |
| 38 | 38 | $useFormatting = isset($options['use_formatting']) |
| 39 | - ? (bool)$options['use_formatting'] |
|
| 39 | + ? (bool) $options['use_formatting'] |
|
| 40 | 40 | : true; |
| 41 | 41 | |
| 42 | 42 | return new MemoryPeakUsageProcessor($realUsage, $useFormatting); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $ident, |
| 44 | 44 | $options['facility'] ?? LOG_USER, |
| 45 | 45 | $options['level'] ?? Logger::DEBUG, |
| 46 | - isset($options['bubble']) ? (bool)$options['bubble'] : true, |
|
| 46 | + isset($options['bubble']) ? (bool) $options['bubble'] : true, |
|
| 47 | 47 | $options['logopts'] ?? LOG_PID |
| 48 | 48 | ); |
| 49 | 49 | } |
@@ -37,10 +37,10 @@ |
||
| 37 | 37 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
| 38 | 38 | |
| 39 | 39 | /** @var Level|LevelName|LogLevel::* $level */ |
| 40 | - $level = isset($options['level']) ? (int)$options['level'] : Logger::DEBUG; |
|
| 40 | + $level = isset($options['level']) ? (int) $options['level'] : Logger::DEBUG; |
|
| 41 | 41 | |
| 42 | 42 | return new ErrorLogHandler( |
| 43 | - isset($options['message_type']) ? (int)$options['message_type'] : ErrorLogHandler::OPERATING_SYSTEM, |
|
| 43 | + isset($options['message_type']) ? (int) $options['message_type'] : ErrorLogHandler::OPERATING_SYSTEM, |
|
| 44 | 44 | $level, |
| 45 | 45 | !isset($options['bubble']) || $options['bubble'], |
| 46 | 46 | isset($options['expand_new_lines']) && $options['expand_new_lines'] |