Completed
Pull Request — master (#9)
by Koldo
11:31
created
src/Service/HandlerManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             return $handler;
33 33
         }
34 34
 
35
-        $formatter= $config->getFormatter();
35
+        $formatter = $config->getFormatter();
36 36
 
37 37
         if ($formatter) {
38 38
             $handler->setFormatter($this->getFormatter($formatter));
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
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     public function __invoke(array $options)
12 12
     {
13
-        $batchMode     = (int)     ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
13
+        $batchMode     = (int) ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
14 14
         $appendNewline = (boolean) ($options['appendNewline'] ?? true);
15 15
         return new JsonFormatter($batchMode, $appendNewline);
16 16
     }
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
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public function __invoke(array $options)
15 15
     {
16
-        $maxNestingLevel        = (int)     ($options['maxNestingLevel']        ?? 3);
16
+        $maxNestingLevel        = (int) ($options['maxNestingLevel']        ?? 3);
17 17
         $exceptionTraceAsString = (boolean) ($options['exceptionTraceAsString'] ?? true);
18 18
         return new MongoDBFormatter($maxNestingLevel, $exceptionTraceAsString);
19 19
     }
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
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 {
11 11
     public function __invoke(array $options)
12 12
     {
13
-        $applicationName =           $options['applicationName'] ?? null;
14
-        $systemName      =           $options['systemName']      ?? null;
15
-        $extraPrefix     =           $options['extraPrefix']     ?? null;
13
+        $applicationName = $options['applicationName'] ?? null;
14
+        $systemName      = $options['systemName']      ?? null;
15
+        $extraPrefix     = $options['extraPrefix']     ?? null;
16 16
         $contextPrefix   = (string) ($options['contextPrefix']   ?? 'ctxt_');
17 17
 
18 18
         return new LogstashFormatter($applicationName, $systemName, $extraPrefix, $contextPrefix);
Please login to merge, or discard this patch.
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/Formatter/LogglyFormatterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     public function __invoke(array $options)
12 12
     {
13
-        $batchMode     =            $options['batchMode']     ?? LogglyFormatter::BATCH_MODE_NEWLINES;
13
+        $batchMode     = $options['batchMode']     ?? LogglyFormatter::BATCH_MODE_NEWLINES;
14 14
         $appendNewline = (boolean) ($options['appendNewline'] ?? true);
15 15
         return new LogglyFormatter($batchMode, $appendNewline);
16 16
     }
Please login to merge, or discard this patch.
src/Handler/PushoverHandlerFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,16 +11,16 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $token             = (string)  ($options['token']             ?? '');
15
-        $users             = (array)   ($options['users']             ?? []);
16
-        $title             =            $options['title']             ?? null;
17
-        $level             = (int)     ($options['level']             ?? Logger::DEBUG);
14
+        $token             = (string) ($options['token']             ?? '');
15
+        $users             = (array) ($options['users']             ?? []);
16
+        $title             = $options['title']             ?? null;
17
+        $level             = (int) ($options['level']             ?? Logger::DEBUG);
18 18
         $bubble            = (boolean) ($options['bubble']            ?? true);
19 19
         $useSSL            = (boolean) ($options['useSSL']            ?? true);
20
-        $highPriorityLevel = (int)     ($options['highPriorityLevel'] ?? Logger::CRITICAL);
21
-        $emergencyLevel    = (int)     ($options['emergencyLevel']    ?? Logger::EMERGENCY);
22
-        $retry             = (int)     ($options['retry']             ?? 30);
23
-        $expire            = (int)     ($options['expire']            ?? 25200);
20
+        $highPriorityLevel = (int) ($options['highPriorityLevel'] ?? Logger::CRITICAL);
21
+        $emergencyLevel    = (int) ($options['emergencyLevel']    ?? Logger::EMERGENCY);
22
+        $retry             = (int) ($options['retry']             ?? 30);
23
+        $expire            = (int) ($options['expire']            ?? 25200);
24 24
 
25 25
         return new PushoverHandler(
26 26
             $token,
Please login to merge, or discard this patch.
src/Handler/CubeHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $url    = (string)  ($options['url']    ?? '');
15
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
14
+        $url    = (string) ($options['url']    ?? '');
15
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
16 16
         $bubble = (boolean) ($options['bubble'] ?? true);
17 17
 
18 18
         return new CubeHandler(
Please login to merge, or discard this patch.
src/Handler/StreamHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
     {
22 22
         $stream         = $this->getStream($options['stream'] ?? null);
23 23
 
24
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
24
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
25 25
         $bubble         = (boolean) ($options['bubble']         ?? true);
26
-        $filePermission = (int)     ($options['filePermission'] ?? 0644);
26
+        $filePermission = (int) ($options['filePermission'] ?? 0644);
27 27
         $useLocking     = (boolean) ($options['useLocking']     ?? true);
28 28
 
29 29
         return new StreamHandler($stream, $level, $bubble, $filePermission, $useLocking);
Please login to merge, or discard this patch.