Completed
Push — master ( 38fa1b...50cdc8 )
by Westin
06:25
created
src/Handler/NativeMailerHandlerFactory.php 1 patch
Spacing   +5 added lines, -5 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
-        $toEmail        = (array)   ($options['to']             ?? []);
16
-        $subject        = (string)  ($options['subject']        ?? true);
17
-        $fromEmail      = (string)  ($options['from']           ?? '');
18
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
15
+        $toEmail        = (array) ($options['to']             ?? []);
16
+        $subject        = (string) ($options['subject']        ?? true);
17
+        $fromEmail      = (string) ($options['from']           ?? '');
18
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
19 19
         $bubble         = (bool) ($options['bubble']         ?? true);
20
-        $maxColumnWidth = (int)     ($options['maxColumnWidth'] ?? 70);
20
+        $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70);
21 21
 
22 22
         return new NativeMailerHandler($toEmail, $subject, $fromEmail, $level, $bubble, $maxColumnWidth);
23 23
     }
Please login to merge, or discard this patch.
src/Handler/DoctrineCouchDBHandlerFactory.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
         $client  = $this->getService($options['client'] ?? 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 DoctrineCouchDBHandler(
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
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
      */
19 19
     public function __invoke(array $options)
20 20
     {
21
-        $token  = (string)  ($options['token']     ?? '');
21
+        $token  = (string) ($options['token']     ?? '');
22 22
         $useSSL = (bool) ($options['useSSL']    ?? true);
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 LogEntriesHandler(
Please login to merge, or discard this patch.
src/Handler/SqsHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     {
19 19
         $sqsClient = $this->getService($options['sqsClient'] ?? null);
20 20
 
21
-        $queueUrl  = (string)  ($options['queueUrl']  ?? Logger::DEBUG);
22
-        $level     = (int)     ($options['level']  ?? Logger::DEBUG);
21
+        $queueUrl  = (string) ($options['queueUrl']  ?? Logger::DEBUG);
22
+        $level     = (int) ($options['level']  ?? Logger::DEBUG);
23 23
         $bubble    = (bool) ($options['bubble'] ?? true);
24 24
 
25 25
         return new SqsHandler($sqsClient, $queueUrl, $level, $bubble);
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
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function __invoke(array $options)
25 25
     {
26
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
26
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
27 27
         $bubble = (bool) ($options['bubble'] ?? true);
28 28
 
29 29
         return new ZendMonitorHandler(
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
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 {
13 13
     public function __invoke(array $options)
14 14
     {
15
-        $connectionString  = (string)  ($options['connectionString'] ?? '');
16
-        $timeout           = (float)   ($options['timeout']          ?? ini_get('default_socket_timeout'));
17
-        $writeTimeout      = (int)     ($options['writeTimeout']     ?? ini_get('default_socket_timeout'));
18
-        $level             = (int)     ($options['level']            ?? Logger::DEBUG);
15
+        $connectionString  = (string) ($options['connectionString'] ?? '');
16
+        $timeout           = (float) ($options['timeout']          ?? ini_get('default_socket_timeout'));
17
+        $writeTimeout      = (int) ($options['writeTimeout']     ?? ini_get('default_socket_timeout'));
18
+        $level             = (int) ($options['level']            ?? Logger::DEBUG);
19 19
         $bubble            = (bool) ($options['bubble']           ?? true);
20 20
 
21 21
         $handler = new SocketHandler(
Please login to merge, or discard this patch.
src/Handler/DeduplicationHandlerFactory.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
         $handler            = $this->getHandlerManager()->get($options['handler']);
20
-        $deduplicationStore =            $options['deduplicationStore'] ?? null;
21
-        $deduplicationLevel = (int)     ($options['deduplicationLevel'] ?? Logger::ERROR);
22
-        $time               = (int)     ($options['time']               ?? 60);
20
+        $deduplicationStore = $options['deduplicationStore'] ?? null;
21
+        $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR);
22
+        $time               = (int) ($options['time']               ?? 60);
23 23
         $bubble             = (bool) ($options['bubble']             ?? true);
24 24
 
25 25
         return new DeduplicationHandler(
Please login to merge, or discard this patch.
src/Handler/SlackWebhookHandlerFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
 {
13 13
     public function __invoke(array $options)
14 14
     {
15
-        $webhookUrl         = (string)  ($options['webhookUrl']             ?? '');
16
-        $channel            =            $options['channel']                ?? null;
17
-        $userName           =            $options['userName']               ?? null;
15
+        $webhookUrl         = (string) ($options['webhookUrl']             ?? '');
16
+        $channel            = $options['channel']                ?? null;
17
+        $userName           = $options['userName']               ?? null;
18 18
         $useAttachment      = (bool) ($options['useAttachment']          ?? true);
19
-        $iconEmoji          =            $options['iconEmoji']              ?? null;
19
+        $iconEmoji          = $options['iconEmoji']              ?? null;
20 20
         $useShortAttachment = (bool) ($options['useShortAttachment']     ?? false);
21 21
         $includeContext     = (bool) ($options['includeContextAndExtra'] ?? false);
22
-        $level              = (int)     ($options['level']                  ?? Logger::DEBUG);
22
+        $level              = (int) ($options['level']                  ?? Logger::DEBUG);
23 23
         $bubble             = (bool) ($options['bubble']                 ?? true);
24
-        $excludeFields      = (array)   ($options['excludeFields']          ?? []);
24
+        $excludeFields      = (array) ($options['excludeFields']          ?? []);
25 25
 
26 26
         return new SlackWebhookHandler(
27 27
             $webhookUrl,
Please login to merge, or discard this patch.
src/Handler/CubeHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 {
13 13
     public function __invoke(array $options)
14 14
     {
15
-        $url    = (string)  ($options['url']    ?? '');
16
-        $level  = (int)     ($options['level']  ?? Logger::DEBUG);
15
+        $url    = (string) ($options['url']    ?? '');
16
+        $level  = (int) ($options['level']  ?? Logger::DEBUG);
17 17
         $bubble = (bool) ($options['bubble'] ?? true);
18 18
 
19 19
         return new CubeHandler(
Please login to merge, or discard this patch.