Passed
Push — master ( 50c06c...19d06a )
by Jorge
01:44
created
src/AvailabilityStrategy/FixedWaitTimeToRetryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         );
52 52
 
53 53
         $storage->numberOfFailures(self::A_SERVICE)->willReturn(self::MAX_FAILURES);
54
-        $oneSecAndOneMillisecond = floor((microtime(true) * 1000)) - 1001;
54
+        $oneSecAndOneMillisecond = floor((microtime(true) * 1000))-1001;
55 55
         $storage->getStrategyData($strategy, "last_try")
56 56
             ->willReturn((string) $oneSecAndOneMillisecond);
57 57
         $storage->resetFailuresCounter(self::A_SERVICE)->shouldBeCalledTimes(1);
Please login to merge, or discard this patch.
src/AvailabilityStrategy/FixedWaitTimeToRetry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             }
27 27
 
28 28
             $lastRetry = $this->getLastTryTime();
29
-            if ($this->now() - $lastRetry > $this->waitTime) {
29
+            if ($this->now()-$lastRetry > $this->waitTime) {
30 30
                 $this->storage->resetFailuresCounter($serviceName);
31 31
                 return true;
32 32
             }
Please login to merge, or discard this patch.