Completed
Pull Request — master (#9)
by Koldo
02:13
created
src/Handler/RotatingFileHandlerFactory.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
-        $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/FlowdockHandlerFactory.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
-        $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/ZendMonitorHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public function __invoke(array $options)
18 18
     {
19
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
19
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
20 20
         $bubble = (boolean) ($options['bubble'] ?? true);
21 21
 
22 22
         return new ZendMonitorHandler(
Please login to merge, or discard this patch.
src/Handler/HipChatHandlerFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,15 +11,15 @@
 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/MandrillHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 
15 15
     public function __invoke(array $options)
16 16
     {
17
-        $apiKey  = (string)  ($options['apiKey']  ?? '');
17
+        $apiKey  = (string) ($options['apiKey']  ?? '');
18 18
         $message = $this->getSwiftMessage($options);
19
-        $level   = (int)     ($options['level']   ?? Logger::DEBUG);
19
+        $level   = (int) ($options['level']   ?? Logger::DEBUG);
20 20
         $bubble  = (boolean) ($options['bubble']  ?? true);
21 21
 
22 22
         return new MandrillHandler(
Please login to merge, or discard this patch.
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.