Completed
Push — master ( 537349...e26b4a )
by Westin
11:04
created
src/Handler/MongoDBHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
     public function __invoke(array $options)
17 17
     {
18 18
         $client     = $this->getService($options['client'] ?? null);
19
-        $database   = (string)  ($options['database']   ?? '');
20
-        $collection = (string)  ($options['collection'] ?? '');
21
-        $level      = (int)     ($options['level']      ?? Logger::DEBUG);
19
+        $database   = (string) ($options['database']   ?? '');
20
+        $collection = (string) ($options['collection'] ?? '');
21
+        $level      = (int) ($options['level']      ?? Logger::DEBUG);
22 22
         $bubble     = (boolean) ($options['bubble']     ?? true);
23 23
 
24 24
         return new MongoDBHandler(
Please login to merge, or discard this patch.
src/Handler/BufferHandlerFactory.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
-        $bufferLimit      = (int)     ($options['bufferLimit']     ?? 0);
20
-        $level            = (int)     ($options['level']           ?? Logger::DEBUG);
19
+        $bufferLimit      = (int) ($options['bufferLimit']     ?? 0);
20
+        $level            = (int) ($options['level']           ?? Logger::DEBUG);
21 21
         $bubble           = (boolean) ($options['bubble']          ?? true);
22 22
         $flushOnOverflow  = (boolean) ($options['flushOnOverflow'] ?? true);
23 23
 
Please login to merge, or discard this patch.
src/Handler/ErrorLogHandlerFactory.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
-        $messageType    = (int)     ($options['messageType']    ?? ErrorLogHandler::OPERATING_SYSTEM);
15
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
14
+        $messageType    = (int) ($options['messageType']    ?? ErrorLogHandler::OPERATING_SYSTEM);
15
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
16 16
         $bubble         = (boolean) ($options['bubble']         ?? true);
17 17
         $expandNewlines = (boolean) ($options['expandNewlines'] ?? false);
18 18
 
Please login to merge, or discard this patch.
src/Handler/NewRelicHandlerFactory.php 1 patch
Spacing   +3 added lines, -3 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
-        $level           = (int)     ($options['level']           ?? Logger::DEBUG);
14
+        $level           = (int) ($options['level']           ?? Logger::DEBUG);
15 15
         $bubble          = (boolean) ($options['bubble']          ?? true);
16
-        $appName         =            $options['appName']         ?? null;
16
+        $appName         = $options['appName']         ?? null;
17 17
         $explodeArrays   = (boolean) ($options['explodeArrays']   ?? false);
18
-        $transactionName =            $options['transactionName'] ?? null;
18
+        $transactionName = $options['transactionName'] ?? null;
19 19
 
20 20
         return new NewRelicHandler(
21 21
             $level,
Please login to merge, or discard this patch.
src/Handler/PHPConsoleHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 
16 16
     public function __invoke(array $options)
17 17
     {
18
-        $consoleOptions = (array)   ($options['options'] ?? []);
18
+        $consoleOptions = (array) ($options['options'] ?? []);
19 19
         $connector      = $this->getService($options['connector'] ?? null);
20
-        $level          = (int)     ($options['level']   ?? Logger::DEBUG);
20
+        $level          = (int) ($options['level']   ?? Logger::DEBUG);
21 21
         $bubble         = (boolean) ($options['bubble']  ?? true);
22 22
 
23 23
         return new PHPConsoleHandler(
Please login to merge, or discard this patch.
src/Handler/LogglyHandlerFactory.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 LogglyHandler(
Please login to merge, or discard this patch.
src/Handler/RotatingFileHandlerFactory.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
-        $filename       = (string)  ($options['filename']       ?? '');
15
-        $maxFiles       = (int)     ($options['maxFiles']       ?? 0);
16
-        $level          = (int)     ($options['level']          ?? Logger::DEBUG);
14
+        $filename       = (string) ($options['filename']       ?? '');
15
+        $maxFiles       = (int) ($options['maxFiles']       ?? 0);
16
+        $level          = (int) ($options['level']          ?? Logger::DEBUG);
17 17
         $bubble         = (boolean) ($options['bubble']         ?? true);
18
-        $filePermission = (int)     ($options['filePermission'] ?? null);
18
+        $filePermission = (int) ($options['filePermission'] ?? null);
19 19
         $useLocking     = (boolean) ($options['useLocking']     ?? false);
20 20
 
21 21
         return new RotatingFileHandler($filename, $maxFiles, $level, $bubble, $filePermission, $useLocking);
Please login to merge, or discard this patch.
src/Handler/FlowdockHandlerFactory.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
-        $apiToken = (string)  ($options['apiToken'] ?? '');
15
-        $level    = (int)     ($options['level']    ?? Logger::DEBUG);
14
+        $apiToken = (string) ($options['apiToken'] ?? '');
15
+        $level    = (int) ($options['level']    ?? Logger::DEBUG);
16 16
         $bubble   = (boolean) ($options['bubble']   ?? true);
17 17
 
18 18
         return new FlowdockHandler(
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public function __invoke(array $options)
18 18
     {
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 ZendMonitorHandler(
Please login to merge, or discard this patch.