Completed
Push — master ( 6deaf3...9152f4 )
by Westin
01:48
created
src/Service/AbstractServiceManager.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -36,6 +36,10 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
     abstract protected function getServiceConfig($id) : ConfigInterface;
39
+
40
+    /**
41
+     * @param string $id
42
+     */
39 43
     abstract protected function hasServiceConfig($id) : bool;
40 44
 
41 45
     public function get($id)
@@ -74,6 +78,9 @@  discard block
 block discarded – undo
74 78
         return $this->hasServiceConfig($id);
75 79
     }
76 80
 
81
+    /**
82
+     * @param string $id
83
+     */
77 84
     protected function getInstanceFromFactory($id)
78 85
     {
79 86
         $class   = null;
Please login to merge, or discard this patch.
src/Formatter/LogstashFormatterFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace WShafer\PSR11MonoLog\Formatter;
5 5
 
@@ -10,9 +10,9 @@  discard block
 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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace WShafer\PSR11MonoLog\Formatter;
5 5
 
@@ -13,8 +13,8 @@  discard block
 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/Handler/PushoverHandlerFactory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace WShafer\PSR11MonoLog\Handler;
5 5
 
@@ -11,16 +11,16 @@  discard block
 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/DynamoDbHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace WShafer\PSR11MonoLog\Handler;
5 5
 
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $client  = $this->getClient($options);
19
-        $table   =            $options['table']  ?? null;
20
-        $level   = (int)     ($options['level']  ?? Logger::DEBUG);
19
+        $table   = $options['table']  ?? null;
20
+        $level   = (int) ($options['level']  ?? Logger::DEBUG);
21 21
         $bubble  = (boolean) ($options['bubble'] ?? true);
22 22
 
23 23
         return new DynamoDbHandler(
Please login to merge, or discard this patch.
src/Handler/SlackHandlerFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace WShafer\PSR11MonoLog\Handler;
5 5
 
@@ -11,16 +11,16 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $token              = (string)  ($options['token']                  ?? '');
15
-        $channel            = (string)  ($options['channel']                ?? '');
16
-        $userName           =            $options['userName']               ?? null;
14
+        $token              = (string) ($options['token']                  ?? '');
15
+        $channel            = (string) ($options['channel']                ?? '');
16
+        $userName           = $options['userName']               ?? null;
17 17
         $useAttachment      = (boolean) ($options['useAttachment']          ?? true);
18
-        $iconEmoji          =            $options['iconEmoji']              ?? null;
19
-        $level              = (int)     ($options['level']                  ?? Logger::DEBUG);
18
+        $iconEmoji          = $options['iconEmoji']              ?? null;
19
+        $level              = (int) ($options['level']                  ?? Logger::DEBUG);
20 20
         $bubble             = (boolean) ($options['bubble']                 ?? true);
21 21
         $useShortAttachment = (boolean) ($options['useShortAttachment']     ?? false);
22 22
         $includeContext     = (boolean) ($options['includeContextAndExtra'] ?? false);
23
-        $excludeFields      = (array)   ($options['excludeFields']          ?? []);
23
+        $excludeFields      = (array) ($options['excludeFields']          ?? []);
24 24
 
25 25
         return new SlackHandler(
26 26
             $token,
Please login to merge, or discard this patch.
src/Handler/SlackWebhookHandlerFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace WShafer\PSR11MonoLog\Handler;
5 5
 
@@ -11,16 +11,16 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $webhookUrl         = (string)  ($options['webhookUrl']             ?? '');
15
-        $channel            =            $options['channel']                ?? null;
16
-        $userName           =            $options['userName']               ?? null;
14
+        $webhookUrl         = (string) ($options['webhookUrl']             ?? '');
15
+        $channel            = $options['channel']                ?? null;
16
+        $userName           = $options['userName']               ?? null;
17 17
         $useAttachment      = (boolean) ($options['useAttachment']          ?? true);
18
-        $iconEmoji          =            $options['iconEmoji']              ?? null;
18
+        $iconEmoji          = $options['iconEmoji']              ?? null;
19 19
         $useShortAttachment = (boolean) ($options['useShortAttachment']     ?? false);
20 20
         $includeContext     = (boolean) ($options['includeContextAndExtra'] ?? false);
21
-        $level              = (int)     ($options['level']                  ?? Logger::DEBUG);
21
+        $level              = (int) ($options['level']                  ?? Logger::DEBUG);
22 22
         $bubble             = (boolean) ($options['bubble']                 ?? true);
23
-        $excludeFields      = (array)   ($options['excludeFields']          ?? []);
23
+        $excludeFields      = (array) ($options['excludeFields']          ?? []);
24 24
 
25 25
         return new SlackWebhookHandler(
26 26
             $webhookUrl,
Please login to merge, or discard this patch.
src/Handler/NewRelicHandlerFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace WShafer\PSR11MonoLog\Handler;
5 5
 
@@ -11,11 +11,11 @@  discard block
 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
         $bubble          = (boolean) ($options['bubble']          ?? true);
16
-        $appName         =            $options['appName']         ?? null;
16
+        $appName         = $options['appName']         ?? null;
17 17
         $explodeArrays   = (boolean) ($options['explodeArrays']   ?? false);
18
-        $transactionName =            $options['transactionName'] ?? null;
18
+        $transactionName = $options['transactionName'] ?? null;
19 19
 
20 20
         return new NewRelicHandler(
21 21
             $level,
Please login to merge, or discard this patch.