Completed
Pull Request — master (#9)
by Koldo
11:31
created
src/Handler/SocketHandlerFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $connectionString  = (string)  ($options['connectionString'] ?? '');
15
-        $timeout           = (string)  ($options['timeout']          ?? '');
16
-        $writeTimeout      = (int)     ($options['writeTimeout']     ?? '');
17
-        $level             = (int)     ($options['level']            ?? Logger::DEBUG);
14
+        $connectionString  = (string) ($options['connectionString'] ?? '');
15
+        $timeout           = (string) ($options['timeout']          ?? '');
16
+        $writeTimeout      = (int) ($options['writeTimeout']     ?? '');
17
+        $level             = (int) ($options['level']            ?? Logger::DEBUG);
18 18
         $bubble            = (boolean) ($options['bubble']           ?? true);
19 19
 
20 20
         $handler = new SocketHandler(
Please login to merge, or discard this patch.
src/Handler/FirePHPHandlerFactory.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 FirePHPHandler(
Please login to merge, or discard this patch.
src/Handler/SlackbotHandlerFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $slackTeam = (string)  ($options['slackTeam'] ?? '');
15
-        $token     = (string)  ($options['token']     ?? '');
16
-        $channel   = (string)  ($options['channel']   ?? '');
17
-        $level     = (int)     ($options['level']     ?? Logger::DEBUG);
14
+        $slackTeam = (string) ($options['slackTeam'] ?? '');
15
+        $token     = (string) ($options['token']     ?? '');
16
+        $channel   = (string) ($options['channel']   ?? '');
17
+        $level     = (int) ($options['level']     ?? Logger::DEBUG);
18 18
         $bubble    = (boolean) ($options['bubble']    ?? true);
19 19
 
20 20
         return new SlackbotHandler(
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
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $host     = (string)  ($options['host']     ?? 'localhost');
15
-        $port     = (int)     ($options['port']     ?? 5984);
16
-        $dbname   = (string)  ($options['port']     ?? 'logger');
17
-        $userName = (string)  ($options['username'] ?? '');
18
-        $password = (string)  ($options['password'] ?? '');
19
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
14
+        $host     = (string) ($options['host']     ?? 'localhost');
15
+        $port     = (int) ($options['port']     ?? 5984);
16
+        $dbname   = (string) ($options['port']     ?? 'logger');
17
+        $userName = (string) ($options['username'] ?? '');
18
+        $password = (string) ($options['password'] ?? '');
19
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
20 20
         $bubble   = (boolean) ($options['bubble']   ?? true);
21 21
 
22 22
         return new CouchDBHandler(
Please login to merge, or discard this patch.
src/Handler/TestHandlerFactory.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 TestHandler(
Please login to merge, or discard this patch.
src/Handler/DynamoDbHandlerFactory.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
         $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/FilterHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
     public function __invoke(array $options)
16 16
     {
17 17
         $handler        = $this->getHandlerManager()->get($options['handler']);
18
-        $minLevelOrList =            $options['minLevelOrList'] ?? null;
19
-        $maxLevel       =            $options['maxLevel']       ?? null;
18
+        $minLevelOrList = $options['minLevelOrList'] ?? null;
19
+        $maxLevel       = $options['maxLevel']       ?? null;
20 20
         $bubble         = (boolean) ($options['bubble']         ?? true);
21 21
 
22 22
         return new FilterHandler(
Please login to merge, or discard this patch.
src/Handler/NativeMailerHandlerFactory.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
-        $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/GelfHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 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.