Completed
Push — master ( 5b3b49...e44d2f )
by Westin
05:38
created
src/Handler/SyslogHandlerFactory.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,11 +11,11 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $ident    = (string)  ($options['ident']    ?? '');
15
-        $facility = (int)     ($options['facility'] ?? LOG_USER);
16
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
14
+        $ident    = (string) ($options['ident']    ?? '');
15
+        $facility = (int) ($options['facility'] ?? LOG_USER);
16
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
17 17
         $bubble   = (boolean) ($options['bubble']   ?? true);
18
-        $logOpts  = (int)     ($options['logOpts']  ?? LOG_PID);
18
+        $logOpts  = (int) ($options['logOpts']  ?? LOG_PID);
19 19
 
20 20
         return new SyslogHandler($ident, $facility, $level, $bubble, $logOpts);
21 21
     }
Please login to merge, or discard this patch.
src/Handler/FlowdockHandlerFactory.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
-        $apiToken = (string)  ($options['apiToken'] ?? '');
15
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
14
+        $apiToken = (string) ($options['apiToken'] ?? '');
15
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
16 16
         $bubble   = (boolean) ($options['bubble']   ?? true);
17 17
 
18 18
         return new FlowdockHandler(
Please login to merge, or discard this patch.
src/Handler/ErrorLogHandlerFactory.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
-        $messageType    = (int)     ($options['messageType']    ?? ErrorLogHandler::OPERATING_SYSTEM);
15
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
14
+        $messageType    = (int) ($options['messageType']    ?? ErrorLogHandler::OPERATING_SYSTEM);
15
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
16 16
         $bubble         = (boolean) ($options['bubble']         ?? true);
17 17
         $expandNewlines = (boolean) ($options['expandNewlines'] ?? false);
18 18
 
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             = (string)  ($options['title']             ?? '');
17
-        $level             = (int)     ($options['level']             ?? Logger::DEBUG);
14
+        $token             = (string) ($options['token']             ?? '');
15
+        $users             = (array) ($options['users']             ?? []);
16
+        $title             = (string) ($options['title']             ?? '');
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/RotatingFileHandlerFactory.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,11 +11,11 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $filename       = (string)  ($options['filename']       ?? '');
15
-        $maxFiles       = (int)     ($options['maxFiles']       ?? 0);
16
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
14
+        $filename       = (string) ($options['filename']       ?? '');
15
+        $maxFiles       = (int) ($options['maxFiles']       ?? 0);
16
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
17 17
         $bubble         = (boolean) ($options['bubble']         ?? true);
18
-        $filePermission = (int)     ($options['filePermission'] ?? null);
18
+        $filePermission = (int) ($options['filePermission'] ?? null);
19 19
         $useLocking     = (boolean) ($options['useLocking']     ?? false);
20 20
 
21 21
         return new RotatingFileHandler($filename, $maxFiles, $level, $bubble, $filePermission, $useLocking);
Please login to merge, or discard this patch.
src/Handler/SwiftMailerHandlerFactory.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
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $mailer  = $this->getMailer($options);
22 22
         $message = $this->getSwiftMessage($options);
23 23
 
24
-        $level   = (int)     ($options['level']  ?? Logger::DEBUG);
24
+        $level   = (int) ($options['level']  ?? Logger::DEBUG);
25 25
         $bubble  = (boolean) ($options['bubble'] ?? true);
26 26
 
27 27
         return new SwiftMailerHandler($mailer, $message, $level, $bubble);
Please login to merge, or discard this patch.
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/StreamHandlerFactory.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
 
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $stream         = $this->getStream($options['stream'] ?? null);
20 20
 
21
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
21
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
22 22
         $bubble         = (boolean) ($options['bubble']         ?? true);
23
-        $filePermission = (int)     ($options['filePermission'] ?? null);
23
+        $filePermission = (int) ($options['filePermission'] ?? null);
24 24
         $useLocking     = (boolean) ($options['useLocking']     ?? false);
25 25
 
26 26
         return new StreamHandler($stream, $level, $bubble, $filePermission, $useLocking);
Please login to merge, or discard this patch.