Test Setup Failed
Push — master ( 299946...d1af9f )
by Christian
08:55
created
src/Middleware/PerfBudgetLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             $this->getLogger()->log(
48 48
                 (string) $this->logLevel,
49 49
                 'Performance threshold exceeded',
50
-                ['MB' => $totalMegabytesIncrease, 'seconds' => $totalTime, 'query' => get_class($query) ]
50
+                ['MB' => $totalMegabytesIncrease, 'seconds' => $totalTime, 'query' => get_class($query)]
51 51
             );
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/QueryBus.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $next = $this->callStack;
35 35
 
36
-        $this->callStack = function (Interfaces\Query $query) use ($middleware, $next): Interfaces\Result {
36
+        $this->callStack = function(Interfaces\Query $query) use ($middleware, $next): Interfaces\Result {
37 37
             return $middleware($query, $next);
38 38
         };
39 39
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     private function seedCallStack(): callable
49 49
     {
50
-        return function (Interfaces\Query $query): Interfaces\Result {
50
+        return function(Interfaces\Query $query): Interfaces\Result {
51 51
             return $this->resolver->resolve($query)->handle($query, $this);
52 52
         };
53 53
     }
Please login to merge, or discard this patch.
src/Middleware/QueryCacher.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $stopTime = microtime(true);
62 62
         $computeTime = (int) ($stopTime - $startTime);
63 63
         $recomputed = $cacheItem->set(DTO\Cache\ResultWrapper::wrap($result, $computeTime, $query->getTTL()))
64
-          ->expiresAfter($query->getTTL());
64
+            ->expiresAfter($query->getTTL());
65 65
 
66 66
         $this->cachePool->save($recomputed);
67 67
 
Please login to merge, or discard this patch.
src/DTO/Cache/ResultWrapper.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             'recomputeSeconds' => $this->recomputeSeconds,
43 43
             'ttl' => $this->ttl,
44 44
             'storedTimestamp' => $this->getTimeStamp(),
45
-         ]);
45
+            ]);
46 46
     }
47 47
 
48 48
     /**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function willProbablyExpireSoon(): bool
69 69
     {
70 70
         return ($this->getTimeStamp() - $this->recomputeSeconds * 1 * log(mt_rand() / mt_getrandmax())
71
-          > $this->expiresAfterTimestamp());
71
+            > $this->expiresAfterTimestamp());
72 72
     }
73 73
 
74 74
     private function expiresAfterTimestamp(): int
Please login to merge, or discard this patch.