Completed
Pull Request — master (#9)
by Koldo
11:31
created
src/Handler/DeduplicationHandlerFactory.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
         $handler            = $this->getHandlerManager()->get($options['handler']);
19
-        $deduplicationStore =            $options['deduplicationStore'] ?? null;
20
-        $deduplicationLevel = (int)     ($options['deduplicationLevel'] ?? Logger::ERROR);
21
-        $time               = (int)     ($options['time']               ?? 60);
19
+        $deduplicationStore = $options['deduplicationStore'] ?? null;
20
+        $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR);
21
+        $time               = (int) ($options['time']               ?? 60);
22 22
         $bubble             = (boolean) ($options['bubble']             ?? true);
23 23
 
24 24
         return new DeduplicationHandler(
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
@@ -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 DoctrineCouchDBHandler(
Please login to merge, or discard this patch.
src/Handler/FingersCrossedHandlerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
     {
20 20
         $handler            = $this->getHandlerManager()->get($options['handler']);
21 21
         $activationStrategy = $this->getActivationStrategy($options);
22
-        $bufferSize         = (int)     ($options['bufferSize']    ?? 0);
22
+        $bufferSize         = (int) ($options['bufferSize']    ?? 0);
23 23
         $bubble             = (boolean) ($options['bubble']        ?? true);
24 24
         $stopBuffering      = (boolean) ($options['stopBuffering'] ?? true);
25
-        $passthruLevel      =            $options['passthruLevel'] ?? null;
25
+        $passthruLevel      = $options['passthruLevel'] ?? null;
26 26
 
27 27
         return new FingersCrossedHandler(
28 28
             $handler,
Please login to merge, or discard this patch.
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/ElasticSearchHandlerFactory.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 ElasticSearchHandler(
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.