Completed
Push — master ( 537349...e26b4a )
by Westin
11:04
created
src/Formatter/LogmaticFormatterFactory.php 1 patch
Spacing   +3 added lines, -3 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
-        $batchMode     = (int)     ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
14
+        $batchMode     = (int) ($options['batchMode']     ?? JsonFormatter::BATCH_MODE_JSON);
15 15
         $appendNewline = (boolean) ($options['appendNewline'] ?? true);
16
-        $hostmane      = (string)  ($options['hostname'] ?? '');
17
-        $appName       = (string)  ($options['appName'] ?? '');
16
+        $hostmane      = (string) ($options['hostname'] ?? '');
17
+        $appName       = (string) ($options['appName'] ?? '');
18 18
 
19 19
         $formatter = new LogmaticFormatter($batchMode, $appendNewline);
20 20
 
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   = (string)  ($options['table']  ?? null);
20
-        $level   = (int)     ($options['level']  ?? Logger::DEBUG);
19
+        $table   = (string) ($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/ProcessHandlerFactory.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
-        $command    = (string)  ($options['command'] ?? null);
15
-        $cwd        = (string)  ($options['cwd']     ?? null);
16
-        $level      = (int)     ($options['level']   ?? Logger::DEBUG);
14
+        $command    = (string) ($options['command'] ?? null);
15
+        $cwd        = (string) ($options['cwd']     ?? null);
16
+        $level      = (int) ($options['level']   ?? Logger::DEBUG);
17 17
         $bubble     = (boolean) ($options['bubble']  ?? true);
18 18
 
19 19
         return new ProcessHandler(
Please login to merge, or discard this patch.
src/Handler/SendGridHandlerFactory.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
-        $apiUser    = (string)  ($options['apiUser'] ?? '');
15
-        $apiKey     = (string)  ($options['apiKey']  ?? '');
16
-        $from       = (string)  ($options['from']    ?? '');
17
-        $to         =           ($options['to']      ?? '');
18
-        $subject    = (string)  ($options['subject'] ?? '');
19
-        $level      = (int)     ($options['level']   ?? Logger::DEBUG);
14
+        $apiUser    = (string) ($options['apiUser'] ?? '');
15
+        $apiKey     = (string) ($options['apiKey']  ?? '');
16
+        $from       = (string) ($options['from']    ?? '');
17
+        $to         = ($options['to']      ?? '');
18
+        $subject    = (string) ($options['subject'] ?? '');
19
+        $level      = (int) ($options['level']   ?? Logger::DEBUG);
20 20
         $bubble     = (boolean) ($options['bubble']  ?? true);
21 21
 
22 22
         return new SendGridHandler(
Please login to merge, or discard this patch.
src/Handler/OverflowHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             Logger::EMERGENCY => $options['thresholdMap']['emergency'] ?? 0,
28 28
         ];
29 29
 
30
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
30
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
31 31
         $bubble = (boolean) ($options['bubble'] ?? true);
32 32
 
33 33
         return new OverflowHandler(
Please login to merge, or discard this patch.
src/Handler/LogmaticHandlerFactory.php 1 patch
Spacing   +5 added lines, -5 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
-        $token    = (string)  ($options['token']  ?? '');
15
-        $hostname = (string)  ($options['hostname'] ?? '');
16
-        $appname  = (string)  ($options['appname'] ?? '');
17
-        $useSSL   = (bool)    ($options['useSSL'] ?? true);
18
-        $level    = (int)     ($options['level']  ?? Logger::DEBUG);
14
+        $token    = (string) ($options['token']  ?? '');
15
+        $hostname = (string) ($options['hostname'] ?? '');
16
+        $appname  = (string) ($options['appname'] ?? '');
17
+        $useSSL   = (bool) ($options['useSSL'] ?? true);
18
+        $level    = (int) ($options['level']  ?? Logger::DEBUG);
19 19
         $bubble   = (boolean) ($options['bubble'] ?? true);
20 20
 
21 21
         return new LogmaticHandler(
Please login to merge, or discard this patch.
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           = (float)   ($options['timeout']          ?? ini_get('default_socket_timeout'));
16
-        $writeTimeout      = (int)     ($options['writeTimeout']     ?? ini_get('default_socket_timeout'));
17
-        $level             = (int)     ($options['level']            ?? Logger::DEBUG);
14
+        $connectionString  = (string) ($options['connectionString'] ?? '');
15
+        $timeout           = (float) ($options['timeout']          ?? ini_get('default_socket_timeout'));
16
+        $writeTimeout      = (int) ($options['writeTimeout']     ?? ini_get('default_socket_timeout'));
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/ElasticaHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 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 ElasticaHandler(
Please login to merge, or discard this patch.
src/Handler/InsightOpsHandlerFactory.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
-        $token  = (string)  ($options['token']  ?? '');
15
-        $region = (string)  ($options['region'] ?? '');
16
-        $useSSL = (bool)    ($options['useSSL'] ?? true);
17
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
14
+        $token  = (string) ($options['token']  ?? '');
15
+        $region = (string) ($options['region'] ?? '');
16
+        $useSSL = (bool) ($options['useSSL'] ?? true);
17
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
18 18
         $bubble = (boolean) ($options['bubble'] ?? true);
19 19
 
20 20
         return new InsightOpsHandler(
Please login to merge, or discard this patch.