Completed
Push — master ( 5b3b49...e44d2f )
by Westin
05:38
created
src/Handler/IFTTTHandlerFactory.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,9 +11,9 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $eventName = (string)  ($options['eventName'] ?? '');
15
-        $secretKey = (string)  ($options['secretKey'] ?? '');
16
-        $level     = (int)     ($options['level']     ?? Logger::DEBUG);
14
+        $eventName = (string) ($options['eventName'] ?? '');
15
+        $secretKey = (string) ($options['secretKey'] ?? '');
16
+        $level     = (int) ($options['level']     ?? Logger::DEBUG);
17 17
         $bubble    = (boolean) ($options['bubble']    ?? true);
18 18
 
19 19
         return new IFTTTHandler(
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           = (string)  ($options['userName']               ?? '');
14
+        $token              = (string) ($options['token']                  ?? '');
15
+        $channel            = (string) ($options['channel']                ?? '');
16
+        $userName           = (string) ($options['userName']               ?? '');
17 17
         $useAttachment      = (boolean) ($options['useAttachment']          ?? true);
18
-        $iconEmoji          = (string)  ($options['iconEmoji']              ?? '');
19
-        $level              = (int)     ($options['level']                  ?? Logger::DEBUG);
18
+        $iconEmoji          = (string) ($options['iconEmoji']              ?? '');
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            = (string)  ($options['channel']                ?? '');
16
-        $userName           = (string)  ($options['userName']               ?? '');
14
+        $webhookUrl         = (string) ($options['webhookUrl']             ?? '');
15
+        $channel            = (string) ($options['channel']                ?? '');
16
+        $userName           = (string) ($options['userName']               ?? '');
17 17
         $useAttachment      = (boolean) ($options['useAttachment']          ?? true);
18
-        $iconEmoji          = (string)  ($options['iconEmoji']              ?? '');
18
+        $iconEmoji          = (string) ($options['iconEmoji']              ?? '');
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/MandrillHandlerFactory.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
 
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
 
13 13
     public function __invoke(array $options)
14 14
     {
15
-        $apiKey  = (string)  ($options['apiKey']  ?? '');
15
+        $apiKey  = (string) ($options['apiKey']  ?? '');
16 16
         $message = $this->getSwiftMessage($options);
17
-        $level   = (int)     ($options['level']   ?? Logger::DEBUG);
17
+        $level   = (int) ($options['level']   ?? Logger::DEBUG);
18 18
         $bubble  = (boolean) ($options['bubble']  ?? true);
19 19
 
20 20
         return new MandrillHandler(
Please login to merge, or discard this patch.
src/Handler/SocketHandlerFactory.php 1 patch
Spacing   +5 added lines, -5 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,10 +11,10 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $connectionString  = (string)  ($options['connectionString'] ?? '');
15
-        $timeout           = (string)  ($options['timeout']          ?? '');
16
-        $writeTimeout      = (int)     ($options['writeTimeout']     ?? '');
17
-        $level             = (int)     ($options['level']            ?? Logger::DEBUG);
14
+        $connectionString  = (string) ($options['connectionString'] ?? '');
15
+        $timeout           = (string) ($options['timeout']          ?? '');
16
+        $writeTimeout      = (int) ($options['writeTimeout']     ?? '');
17
+        $level             = (int) ($options['level']            ?? Logger::DEBUG);
18 18
         $bubble            = (boolean) ($options['bubble']           ?? true);
19 19
 
20 20
         $handler = new SocketHandler(
Please login to merge, or discard this patch.
src/Handler/AmqpHandlerFactory.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
 
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
     public function __invoke(array $options)
20 20
     {
21 21
         $exchange     = $this->getAmqpExchange($options);
22
-        $exchangeName = (string)  ($options['exchangeName'] ?? 'log');
23
-        $level        = (int)     ($options['level']     ?? Logger::DEBUG);
22
+        $exchangeName = (string) ($options['exchangeName'] ?? 'log');
23
+        $level        = (int) ($options['level']     ?? Logger::DEBUG);
24 24
         $bubble       = (boolean) ($options['bubble']    ?? true);
25 25
 
26 26
         return new AmqpHandler(
Please login to merge, or discard this patch.
src/Handler/GelfHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function __invoke(array $options)
20 20
     {
21 21
         $publisher = $this->getPublisher($options);
22
-        $level     = (int)     ($options['level']     ?? Logger::DEBUG);
22
+        $level     = (int) ($options['level']     ?? Logger::DEBUG);
23 23
         $bubble    = (boolean) ($options['bubble']    ?? true);
24 24
 
25 25
         return new GelfHandler(
Please login to merge, or discard this patch.
src/Handler/CubeHandlerFactory.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
 
@@ -11,8 +11,8 @@  discard block
 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/RavenHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function __invoke(array $options)
19 19
     {
20 20
         $client = $this->getClient($options);
21
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
21
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
22 22
         $bubble = (boolean) ($options['bubble'] ?? true);
23 23
 
24 24
         return new RavenHandler(
Please login to merge, or discard this patch.