Completed
Push — master ( fbc01c...6057b3 )
by Westin
15s
created
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
 
@@ -16,8 +16,8 @@  discard block
 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/MongoDBHandlerFactory.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
 
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $client     = $this->getService($options['client'] ?? null);
19
-        $database   = (string)  ($options['database']   ?? '');
20
-        $collection = (string)  ($options['collection'] ?? '');
21
-        $level      = (int)     ($options['level']      ?? Logger::DEBUG);
19
+        $database   = (string) ($options['database']   ?? '');
20
+        $collection = (string) ($options['collection'] ?? '');
21
+        $level      = (int) ($options['level']      ?? Logger::DEBUG);
22 22
         $bubble     = (boolean) ($options['bubble']     ?? true);
23 23
 
24 24
         return new MongoDBHandler(
Please login to merge, or discard this patch.
src/Handler/ElasticSearchHandlerFactory.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
 
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $client      = $this->getService($options['client'] ?? null);
19
-        $index       = (string)  ($options['index']       ?? 'monolog');
20
-        $type        = (string)  ($options['type']        ?? 'record');
19
+        $index       = (string) ($options['index']       ?? 'monolog');
20
+        $type        = (string) ($options['type']        ?? 'record');
21 21
         $ignoreError = (boolean) ($options['ignoreError'] ?? false);
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 ElasticSearchHandler(
Please login to merge, or discard this patch.
src/Handler/PHPConsoleHandlerFactory.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
 
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
 
16 16
     public function __invoke(array $options)
17 17
     {
18
-        $consoleOptions = (array)   ($options['options'] ?? []);
18
+        $consoleOptions = (array) ($options['options'] ?? []);
19 19
         $connector      = $this->getService($options['connector'] ?? null);
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 PHPConsoleHandler(
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->getService($options['publisher'] ?? mull);
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/DynamoDbHandlerFactory.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
 
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $client  = $this->getService($options['client'] ?? null);
19
-        $table   =            $options['table']  ?? null;
20
-        $level   = (int)     ($options['level']  ?? Logger::DEBUG);
19
+        $table   = $options['table']  ?? null;
20
+        $level   = (int) ($options['level']  ?? Logger::DEBUG);
21 21
         $bubble  = (boolean) ($options['bubble'] ?? true);
22 22
 
23 23
         return new DynamoDbHandler(
Please login to merge, or discard this patch.
src/Handler/PsrHandlerFactory.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
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $logger     = $this->getService($options['logger'] ?? null);
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 PsrHandler(
Please login to merge, or discard this patch.
src/Handler/RedisHandlerFactory.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
 
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $client  = $this->getService($options['client'] ?? []);
19
-        $key     = (string)  ($options['key']     ?? '');
20
-        $level   = (int)     ($options['level']   ?? Logger::DEBUG);
19
+        $key     = (string) ($options['key']     ?? '');
20
+        $level   = (int) ($options['level']   ?? Logger::DEBUG);
21 21
         $bubble  = (boolean) ($options['bubble']  ?? true);
22
-        $capSize = (int)     ($options['capSize'] ?? 0);
22
+        $capSize = (int) ($options['capSize'] ?? 0);
23 23
 
24 24
         return new RedisHandler(
25 25
             $client,
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
 
@@ -17,7 +17,7 @@  discard block
 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.