Completed
Push — master ( 38fa1b...50cdc8 )
by Westin
06:25
created
src/Formatter/LineFormatterFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 {
14 14
     public function __invoke(array $options)
15 15
     {
16
-        $format                     =         $options['format']                     ?? null;
17
-        $dateFormat                 =         $options['dateFormat']                 ?? null;
16
+        $format                     = $options['format']                     ?? null;
17
+        $dateFormat                 = $options['dateFormat']                 ?? null;
18 18
         $allowInlineLineBreaks      = (bool) ($options['allowInlineLineBreaks']      ?? false);
19 19
         $ignoreEmptyContextAndExtra = (bool) ($options['ignoreEmptyContextAndExtra'] ?? false);
20 20
 
Please login to merge, or discard this patch.
src/Processor/IntrospectionProcessorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $level          = (int)   ($options['level']               ?? Logger::DEBUG);
14
+        $level          = (int) ($options['level']               ?? Logger::DEBUG);
15 15
         $skipPartials   = (array) ($options['skipClassesPartials'] ?? []);
16
-        $skipFrameCount = (int)   ($options['skipStackFramesCount'] ?? 0);
16
+        $skipFrameCount = (int) ($options['skipStackFramesCount'] ?? 0);
17 17
 
18 18
         return new IntrospectionProcessor(
19 19
             $level,
Please login to merge, or discard this patch.
src/Service/AbstractServiceManager.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -37,6 +37,10 @@  discard block
 block discarded – undo
37 37
     }
38 38
 
39 39
     abstract protected function getServiceConfig($id): ConfigInterface;
40
+
41
+    /**
42
+     * @param string $id
43
+     */
40 44
     abstract protected function hasServiceConfig($id): bool;
41 45
 
42 46
     public function get($id)
@@ -75,6 +79,9 @@  discard block
 block discarded – undo
75 79
         return $this->hasServiceConfig($id);
76 80
     }
77 81
 
82
+    /**
83
+     * @param string $id
84
+     */
78 85
     protected function getInstanceFromFactory($id)
79 86
     {
80 87
         $class   = null;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         // Make sure we have one of these
49 49
         if (!$this->has($id)) {
50 50
             throw new UnknownServiceException(
51
-                'Unable to locate service ' . $id . '.  Please check your configuration.'
51
+                'Unable to locate service '.$id.'.  Please check your configuration.'
52 52
             );
53 53
         }
54 54
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             || !in_array(FactoryInterface::class, class_implements($class))
99 99
         ) {
100 100
             throw new InvalidConfigException(
101
-                $id . '.  Is not a valid factory.  Please check your configuration.'
101
+                $id.'.  Is not a valid factory.  Please check your configuration.'
102 102
             );
103 103
         }
104 104
 
Please login to merge, or discard this patch.
src/Formatter/MongoDBFormatterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     public function __invoke(array $options)
16 16
     {
17
-        $maxNestingLevel        = (int)     ($options['maxNestingLevel']        ?? 3);
17
+        $maxNestingLevel        = (int) ($options['maxNestingLevel']        ?? 3);
18 18
         $exceptionTraceAsString = (bool) ($options['exceptionTraceAsString'] ?? true);
19 19
         return new MongoDBFormatter($maxNestingLevel, $exceptionTraceAsString);
20 20
     }
Please login to merge, or discard this patch.
src/Formatter/LogstashFormatterFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $applicationName =           $options['applicationName'] ?? '';
15
-        $systemName      =           $options['systemName']      ?? '';
16
-        $extraPrefix     =           $options['extraPrefix']     ?? '';
14
+        $applicationName = $options['applicationName'] ?? '';
15
+        $systemName      = $options['systemName']      ?? '';
16
+        $extraPrefix     = $options['extraPrefix']     ?? '';
17 17
         $contextPrefix   = (string) ($options['contextPrefix']   ?? 'ctxt_');
18 18
 
19 19
         return new LogstashFormatter($applicationName, $systemName, $extraPrefix, $contextPrefix);
Please login to merge, or discard this patch.
src/Formatter/LogmaticFormatterFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 {
13 13
     public function __invoke(array $options)
14 14
     {
15
-        $batchMode     = (int)     ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
15
+        $batchMode     = (int) ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
16 16
         $appendNewline = (bool) ($options['appendNewline'] ?? true);
17
-        $hostmane      = (string)  ($options['hostname'] ?? '');
18
-        $appName       = (string)  ($options['appName'] ?? '');
17
+        $hostmane      = (string) ($options['hostname'] ?? '');
18
+        $appName       = (string) ($options['appName'] ?? '');
19 19
 
20 20
         $formatter = new LogmaticFormatter($batchMode, $appendNewline);
21 21
 
Please login to merge, or discard this patch.
src/Formatter/JsonFormatterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $batchMode     = (int)     ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
14
+        $batchMode     = (int) ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
15 15
         $appendNewline = (bool) ($options['appendNewline'] ?? true);
16 16
         return new JsonFormatter($batchMode, $appendNewline);
17 17
     }
Please login to merge, or discard this patch.
src/Formatter/LogglyFormatterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $batchMode     =            $options['batchMode']     ?? LogglyFormatter::BATCH_MODE_NEWLINES;
14
+        $batchMode     = $options['batchMode']     ?? LogglyFormatter::BATCH_MODE_NEWLINES;
15 15
         $appendNewline = (bool) ($options['appendNewline'] ?? true);
16 16
         return new LogglyFormatter($batchMode, $appendNewline);
17 17
     }
Please login to merge, or discard this patch.
src/ServiceTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
         if (!$this->getContainer()->has($name)) {
21 21
             throw new MissingServiceException(
22
-                'No service found for :' . $name
22
+                'No service found for :'.$name
23 23
             );
24 24
         }
25 25
 
Please login to merge, or discard this patch.