Passed
Pull Request — master (#3)
by Alex
02:52 queued 01:07
created
src/Factory/Formatter/AbstractNormalizerFormatterFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,20 +26,20 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Factory/Processor/UidProcessorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Factory/Handler/ErrorLogHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
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']
Please login to merge, or discard this patch.
src/Factory/Handler/PsrHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         }
47 47
 
48 48
         /** @var Level|LevelName|LogLevel::* $level */
49
-        $level = isset($options['level']) ? (int)$options['level'] : Logger::DEBUG;
49
+        $level = isset($options['level']) ? (int) $options['level'] : Logger::DEBUG;
50 50
 
51 51
         $handler = new PsrHandler(
52 52
             $this->getLogger($container, $options['logger'], $requestedName),
Please login to merge, or discard this patch.
src/Factory/FactoryFormatterProviderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     private function getFormatter(
22 22
         ContainerInterface $container,
23
-        string|FormatterInterface $formatter,
23
+        string | FormatterInterface $formatter,
24 24
         string $serviceName
25 25
     ): FormatterInterface {
26 26
         if (is_string($formatter)) {
Please login to merge, or discard this patch.
src/Factory/Handler/SyslogHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             $ident,
36 36
             $options['facility'] ?? LOG_USER,
37 37
             $options['level'] ?? Logger::DEBUG,
38
-            !isset($options['bubble']) || (bool)$options['bubble'],
38
+            !isset($options['bubble']) || (bool) $options['bubble'],
39 39
             $options['logopts'] ?? LOG_PID
40 40
         );
41 41
     }
Please login to merge, or discard this patch.