Completed
Push — master ( 38fa1b...50cdc8 )
by Westin
06:25
created
src/Handler/MongoDBHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     public function __invoke(array $options)
18 18
     {
19 19
         $client     = $this->getService($options['client'] ?? null);
20
-        $database   = (string)  ($options['database']   ?? '');
21
-        $collection = (string)  ($options['collection'] ?? '');
22
-        $level      = (int)     ($options['level']      ?? Logger::DEBUG);
20
+        $database   = (string) ($options['database']   ?? '');
21
+        $collection = (string) ($options['collection'] ?? '');
22
+        $level      = (int) ($options['level']      ?? Logger::DEBUG);
23 23
         $bubble     = (bool) ($options['bubble']     ?? true);
24 24
 
25 25
         return new MongoDBHandler(
Please login to merge, or discard this patch.
src/Handler/GelfHandlerFactory.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
     public function __invoke(array $options)
18 18
     {
19 19
         $publisher = $this->getService($options['publisher'] ?? null);
20
-        $level     = (int)     ($options['level']     ?? Logger::DEBUG);
20
+        $level     = (int) ($options['level']     ?? Logger::DEBUG);
21 21
         $bubble    = (bool) ($options['bubble']    ?? true);
22 22
 
23 23
         return new GelfHandler(
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
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         $mailer  = $this->getService($options['mailer'] ?? null);
19 19
         $message = $this->getSwiftMessage($options);
20 20
 
21
-        $level   = (int)     ($options['level']  ?? Logger::DEBUG);
21
+        $level   = (int) ($options['level']  ?? Logger::DEBUG);
22 22
         $bubble  = (bool) ($options['bubble'] ?? true);
23 23
 
24 24
         return new SwiftMailerHandler($mailer, $message, $level, $bubble);
Please login to merge, or discard this patch.
src/Handler/RedisHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@
 block discarded – undo
17 17
     public function __invoke(array $options)
18 18
     {
19 19
         $client  = $this->getService($options['client'] ?? []);
20
-        $key     = (string)  ($options['key']     ?? '');
21
-        $level   = (int)     ($options['level']   ?? Logger::DEBUG);
20
+        $key     = (string) ($options['key']     ?? '');
21
+        $level   = (int) ($options['level']   ?? Logger::DEBUG);
22 22
         $bubble  = (bool) ($options['bubble']  ?? true);
23
-        $capSize = (int)     ($options['capSize'] ?? 0);
23
+        $capSize = (int) ($options['capSize'] ?? 0);
24 24
 
25 25
         return new RedisHandler(
26 26
             $client,
Please login to merge, or discard this patch.
src/Handler/StreamHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
     {
29 29
         $stream         = $this->getStream($options['stream'] ?? null);
30 30
 
31
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
31
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
32 32
         $bubble         = (bool) ($options['bubble']         ?? true);
33
-        $filePermission = (int)     ($options['filePermission'] ?? 0644);
33
+        $filePermission = (int) ($options['filePermission'] ?? 0644);
34 34
         $useLocking     = (bool) ($options['useLocking']     ?? true);
35 35
 
36 36
         return new StreamHandler($stream, $level, $bubble, $filePermission, $useLocking);
Please login to merge, or discard this patch.
src/Handler/FilterHandlerFactory.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
         $handler        = $this->getHandlerManager()->get($options['handler']);
19
-        $minLevelOrList =            $options['minLevelOrList'] ?? null;
20
-        $maxLevel       =            $options['maxLevel']       ?? null;
19
+        $minLevelOrList = $options['minLevelOrList'] ?? null;
20
+        $maxLevel       = $options['maxLevel']       ?? null;
21 21
         $bubble         = (bool) ($options['bubble']         ?? true);
22 22
 
23 23
         return new FilterHandler(
Please login to merge, or discard this patch.
src/Handler/CouchDBHandlerFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
12 12
 {
13 13
     public function __invoke(array $options)
14 14
     {
15
-        $host     = (string)  ($options['host']     ?? 'localhost');
16
-        $port     = (int)     ($options['port']     ?? 5984);
17
-        $dbname   = (string)  ($options['port']     ?? 'logger');
18
-        $userName = (string)  ($options['username'] ?? '');
19
-        $password = (string)  ($options['password'] ?? '');
20
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
15
+        $host     = (string) ($options['host']     ?? 'localhost');
16
+        $port     = (int) ($options['port']     ?? 5984);
17
+        $dbname   = (string) ($options['port']     ?? 'logger');
18
+        $userName = (string) ($options['username'] ?? '');
19
+        $password = (string) ($options['password'] ?? '');
20
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
21 21
         $bubble   = (bool) ($options['bubble']   ?? true);
22 22
 
23 23
         return new CouchDBHandler(
Please login to merge, or discard this patch.
src/Handler/ElasticaHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@
 block discarded – undo
17 17
     public function __invoke(array $options)
18 18
     {
19 19
         $client      = $this->getService($options['client'] ?? null);
20
-        $index       = (string)  ($options['index']       ?? 'monolog');
21
-        $type        = (string)  ($options['type']        ?? 'record');
20
+        $index       = (string) ($options['index']       ?? 'monolog');
21
+        $type        = (string) ($options['type']        ?? 'record');
22 22
         $ignoreError = (bool) ($options['ignoreError'] ?? false);
23
-        $level       = (int)     ($options['level']       ?? Logger::DEBUG);
23
+        $level       = (int) ($options['level']       ?? Logger::DEBUG);
24 24
         $bubble      = (bool) ($options['bubble']      ?? true);
25 25
 
26 26
         return new ElasticaHandler(
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
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 {
13 13
     public function __invoke(array $options)
14 14
     {
15
-        $eventName = (string)  ($options['eventName'] ?? '');
16
-        $secretKey = (string)  ($options['secretKey'] ?? '');
17
-        $level     = (int)     ($options['level']     ?? Logger::DEBUG);
15
+        $eventName = (string) ($options['eventName'] ?? '');
16
+        $secretKey = (string) ($options['secretKey'] ?? '');
17
+        $level     = (int) ($options['level']     ?? Logger::DEBUG);
18 18
         $bubble    = (bool) ($options['bubble']    ?? true);
19 19
 
20 20
         return new IFTTTHandler(
Please login to merge, or discard this patch.