Completed
Push — master ( fbc01c...6057b3 )
by Westin
15s
created
src/Handler/NativeMailerHandlerFactory.php 1 patch
Spacing   +6 added lines, -6 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,12 +11,12 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $toEmail        = (array)   ($options['to']             ?? []);
15
-        $subject        = (string)  ($options['subject']        ?? true);
16
-        $fromEmail      = (string)  ($options['from']           ?? '');
17
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
14
+        $toEmail        = (array) ($options['to']             ?? []);
15
+        $subject        = (string) ($options['subject']        ?? true);
16
+        $fromEmail      = (string) ($options['from']           ?? '');
17
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
18 18
         $bubble         = (boolean) ($options['bubble']         ?? true);
19
-        $maxColumnWidth = (int)     ($options['maxColumnWidth'] ?? 70);
19
+        $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70);
20 20
 
21 21
         return new NativeMailerHandler($toEmail, $subject, $fromEmail, $level, $bubble, $maxColumnWidth);
22 22
     }
Please login to merge, or discard this patch.
src/Handler/HipChatHandlerFactory.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,15 +11,15 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $token  = (string)  ($options['token']  ?? '');
15
-        $room   = (string)  ($options['room']   ?? '');
16
-        $name   = (string)  ($options['name']   ?? 'Monolog');
14
+        $token  = (string) ($options['token']  ?? '');
15
+        $room   = (string) ($options['room']   ?? '');
16
+        $name   = (string) ($options['name']   ?? 'Monolog');
17 17
         $notify = (boolean) ($options['notify'] ?? false);
18
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
18
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
19 19
         $bubble = (boolean) ($options['bubble'] ?? true);
20 20
         $useSSL = (boolean) ($options['useSSL'] ?? true);
21
-        $format = (string)  ($options['format'] ?? 'text');
22
-        $host   = (string)  ($options['host']   ?? 'api.hipchat.com');
21
+        $format = (string) ($options['format'] ?? 'text');
22
+        $host   = (string) ($options['host']   ?? 'api.hipchat.com');
23 23
 
24 24
         return new HipChatHandler(
25 25
             $token,
Please login to merge, or discard this patch.
src/Handler/FleepHookHandlerFactory.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
-        $token  = (string)  ($options['token']     ?? '');
15
-        $level  = (int)     ($options['level']     ?? Logger::DEBUG);
14
+        $token  = (string) ($options['token']     ?? '');
15
+        $level  = (int) ($options['level']     ?? Logger::DEBUG);
16 16
         $bubble = (boolean) ($options['bubble']    ?? true);
17 17
 
18 18
         return new FleepHookHandler(
Please login to merge, or discard this patch.
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/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/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/ZendMonitorHandlerFactory.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
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function __invoke(array $options)
16 16
     {
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 ZendMonitorHandler(
Please login to merge, or discard this patch.
src/Handler/LogglyHandlerFactory.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
-        $token  = (string)  ($options['token']     ?? '');
15
-        $level  = (int)     ($options['level']     ?? Logger::DEBUG);
14
+        $token  = (string) ($options['token']     ?? '');
15
+        $level  = (int) ($options['level']     ?? Logger::DEBUG);
16 16
         $bubble = (boolean) ($options['bubble']    ?? true);
17 17
 
18 18
         return new LogglyHandler(
Please login to merge, or discard this patch.