Completed
Push — master ( 537349...e26b4a )
by Westin
11:04
created
src/Handler/AmqpHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $exchange     = $this->getService($options['exchange'] ?? null);
19
-        $exchangeName = (string)  ($options['exchangeName'] ?? 'log');
20
-        $level        = (int)     ($options['level']     ?? Logger::DEBUG);
19
+        $exchangeName = (string) ($options['exchangeName'] ?? 'log');
20
+        $level        = (int) ($options['level']     ?? Logger::DEBUG);
21 21
         $bubble       = (boolean) ($options['bubble']    ?? true);
22 22
 
23 23
         return new AmqpHandler(
Please login to merge, or discard this patch.
src/Handler/LogEntriesHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $token  = (string)  ($options['token']     ?? '');
14
+        $token  = (string) ($options['token']     ?? '');
15 15
         $useSSL = (boolean) ($options['useSSL']    ?? true);
16
-        $level  = (int)     ($options['level']     ?? Logger::DEBUG);
16
+        $level  = (int) ($options['level']     ?? Logger::DEBUG);
17 17
         $bubble = (boolean) ($options['bubble']    ?? true);
18 18
 
19 19
         return new LogEntriesHandler(
Please login to merge, or discard this patch.
src/Handler/SwiftMailerHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $mailer  = $this->getService($options['mailer'] ?? null);
18 18
         $message = $this->getSwiftMessage($options);
19 19
 
20
-        $level   = (int)     ($options['level']  ?? Logger::DEBUG);
20
+        $level   = (int) ($options['level']  ?? Logger::DEBUG);
21 21
         $bubble  = (boolean) ($options['bubble'] ?? true);
22 22
 
23 23
         return new SwiftMailerHandler($mailer, $message, $level, $bubble);
Please login to merge, or discard this patch.
src/Handler/BrowserConsoleHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 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 16
 
17 17
         return new BrowserConsoleHandler(
Please login to merge, or discard this patch.
src/Handler/SlackHandlerFactory.php 1 patch
Spacing   +6 added lines, -6 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
-        $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/IFTTTHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 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/SyslogUdpHandlerFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $host     = (string)  ($options['host']     ?? '');
15
-        $port     = (int)     ($options['host']     ?? 514);
16
-        $facility = (int)     ($options['facility'] ?? LOG_USER);
17
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
14
+        $host     = (string) ($options['host']     ?? '');
15
+        $port     = (int) ($options['host']     ?? 514);
16
+        $facility = (int) ($options['facility'] ?? LOG_USER);
17
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
18 18
         $bubble   = (boolean) ($options['bubble']   ?? true);
19
-        $ident    = (string)  ($options['ident']    ?? 'php');
19
+        $ident    = (string) ($options['ident']    ?? 'php');
20 20
 
21 21
         return new SyslogUdpHandler(
22 22
             $host,
Please login to merge, or discard this patch.
src/Handler/FleepHookHandlerFactory.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
-        $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/SyslogHandlerFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 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.