Completed
Pull Request — master (#9)
by Koldo
02:13
created
src/Handler/IFTTTHandlerFactory.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
-        $eventName = (string)  ($options['eventName'] ?? '');
15
-        $secretKey = (string)  ($options['secretKey'] ?? '');
16
-        $level     = (int)     ($options['level']     ?? Logger::DEBUG);
14
+        $eventName = (string) ($options['eventName'] ?? '');
15
+        $secretKey = (string) ($options['secretKey'] ?? '');
16
+        $level     = (int) ($options['level']     ?? Logger::DEBUG);
17 17
         $bubble    = (boolean) ($options['bubble']    ?? true);
18 18
 
19 19
         return new IFTTTHandler(
Please login to merge, or discard this patch.
src/Handler/RavenHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $client = $this->getService($options['client'] ?? 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 RavenHandler(
Please login to merge, or discard this patch.
src/Handler/SyslogUdpHandlerFactory.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
-        $host     = (string)  ($options['host']     ?? '');
15
-        $port     = (int)     ($options['host']     ?? 514);
16
-        $facility = (int)     ($options['facility'] ?? LOG_USER);
17
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
14
+        $host     = (string) ($options['host']     ?? '');
15
+        $port     = (int) ($options['host']     ?? 514);
16
+        $facility = (int) ($options['facility'] ?? LOG_USER);
17
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
18 18
         $bubble   = (boolean) ($options['bubble']   ?? true);
19
-        $ident    = (string)  ($options['ident']    ?? 'php');
19
+        $ident    = (string) ($options['ident']    ?? 'php');
20 20
 
21 21
         return new SyslogUdpHandler(
22 22
             $host,
Please login to merge, or discard this patch.
src/Handler/FleepHookHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $token  = (string)  ($options['token']     ?? '');
15
-        $level  = (int)     ($options['level']     ?? Logger::DEBUG);
14
+        $token  = (string) ($options['token']     ?? '');
15
+        $level  = (int) ($options['level']     ?? Logger::DEBUG);
16 16
         $bubble = (boolean) ($options['bubble']    ?? true);
17 17
 
18 18
         return new FleepHookHandler(
Please login to merge, or discard this patch.
src/Handler/SyslogHandlerFactory.php 1 patch
Spacing   +4 added lines, -4 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
-        $ident    = (string)  ($options['ident']    ?? '');
15
-        $facility = (int)     ($options['facility'] ?? LOG_USER);
16
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
14
+        $ident    = (string) ($options['ident']    ?? '');
15
+        $facility = (int) ($options['facility'] ?? LOG_USER);
16
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
17 17
         $bubble   = (boolean) ($options['bubble']   ?? true);
18
-        $logOpts  = (int)     ($options['logOpts']  ?? LOG_PID);
18
+        $logOpts  = (int) ($options['logOpts']  ?? LOG_PID);
19 19
 
20 20
         return new SyslogHandler($ident, $facility, $level, $bubble, $logOpts);
21 21
     }
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
@@ -11,16 +11,16 @@
 block discarded – undo
11 11
 {
12 12
     public function __invoke(array $options)
13 13
     {
14
-        $webhookUrl         = (string)  ($options['webhookUrl']             ?? '');
15
-        $channel            =            $options['channel']                ?? null;
16
-        $userName           =            $options['userName']               ?? null;
14
+        $webhookUrl         = (string) ($options['webhookUrl']             ?? '');
15
+        $channel            = $options['channel']                ?? null;
16
+        $userName           = $options['userName']               ?? null;
17 17
         $useAttachment      = (boolean) ($options['useAttachment']          ?? true);
18
-        $iconEmoji          =            $options['iconEmoji']              ?? null;
18
+        $iconEmoji          = $options['iconEmoji']              ?? null;
19 19
         $useShortAttachment = (boolean) ($options['useShortAttachment']     ?? false);
20 20
         $includeContext     = (boolean) ($options['includeContextAndExtra'] ?? false);
21
-        $level              = (int)     ($options['level']                  ?? Logger::DEBUG);
21
+        $level              = (int) ($options['level']                  ?? Logger::DEBUG);
22 22
         $bubble             = (boolean) ($options['bubble']                 ?? true);
23
-        $excludeFields      = (array)   ($options['excludeFields']          ?? []);
23
+        $excludeFields      = (array) ($options['excludeFields']          ?? []);
24 24
 
25 25
         return new SlackWebhookHandler(
26 26
             $webhookUrl,
Please login to merge, or discard this patch.
src/Handler/PsrHandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 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   +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'] ?? []);
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/Processor/IntrospectionProcessorFactory.php 1 patch
Spacing   +2 added lines, -2 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
-        $level          = (int)   ($options['level']               ?? Logger::DEBUG);
14
+        $level          = (int) ($options['level']               ?? Logger::DEBUG);
15 15
         $skipPartials   = (array) ($options['skipClassesPartials'] ?? []);
16
-        $skipFrameCount = (int)   ($options['skipStackFramesCount'] ?? 0);
16
+        $skipFrameCount = (int) ($options['skipStackFramesCount'] ?? 0);
17 17
 
18 18
         return new IntrospectionProcessor(
19 19
             $level,
Please login to merge, or discard this patch.