Completed
Push — master ( 1fe47c...aa35cb )
by Boris
02:28
created
src/Bgy/TransientFaultHandling/RetryStrategies/ExponentialBackoff.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,12 +45,12 @@
 block discarded – undo
45 45
             }
46 46
 
47 47
 
48
-            public function __invoke(int $currentRetryCount, Throwable $lastException, int &$interval)
48
+            public function __invoke(int $currentRetryCount, Throwable $lastException, int&$interval)
49 49
             {
50 50
                 if ($currentRetryCount < $this->retryCount) {
51 51
                     $delta = (int) ((
52 52
                         pow(2.0, $currentRetryCount) - 1.0)
53
-                      * random_int((int)($this->deltaBackoff * 0.8), (int)($this->deltaBackoff * 1.2))
53
+                      * random_int((int) ($this->deltaBackoff * 0.8), (int) ($this->deltaBackoff * 1.2))
54 54
                     );
55 55
                     $interval = (int) min($this->minBackoff + $delta, $this->maxBackoff);
56 56
 
Please login to merge, or discard this patch.
src/Bgy/TransientFaultHandling/RetryStrategies/Incremental.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $this->retryCount                    = $retryCount;
22 22
         $this->initialIntervalInMicroseconds = $initialIntervalInMicroseconds;
23 23
         $this->incrementInMicroseconds       = $incrementInMicroseconds;
24
-        $this->firstFastRetry                 = $firstFastRetry;
24
+        $this->firstFastRetry = $firstFastRetry;
25 25
     }
26 26
 
27 27
     public function getShouldRetry(): ShouldRetry
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 $this->incrementInMicroseconds       = $incrementInMicroseconds;
40 40
             }
41 41
 
42
-            public function __invoke(int $currentRetryCount, Throwable $lastException, int &$interval)
42
+            public function __invoke(int $currentRetryCount, Throwable $lastException, int&$interval)
43 43
             {
44 44
                 if ($currentRetryCount < $this->retryCount) {
45 45
                     $interval = $this->initialIntervalInMicroseconds + ($this->incrementInMicroseconds * $currentRetryCount);
Please login to merge, or discard this patch.
src/Bgy/TransientFaultHandling/RetryStrategies/FixedInterval.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $this->retryCount                  = $retryCount;
21 21
         $this->retryIntervalInMicroseconds = $retryIntervalInMicroseconds;
22
-        $this->firstFastRetry               = $firstFastRetry;
22
+        $this->firstFastRetry = $firstFastRetry;
23 23
     }
24 24
 
25 25
     public function getShouldRetry(): ShouldRetry
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 $this->retryIntervalInMicroseconds = $retryIntervalInMicroseconds;
36 36
             }
37 37
 
38
-            public function __invoke(int $currentRetryCount, Throwable $lastException, int &$interval)
38
+            public function __invoke(int $currentRetryCount, Throwable $lastException, int&$interval)
39 39
             {
40 40
                 if ($currentRetryCount < $this->retryCount) {
41 41
                     $interval = $this->retryIntervalInMicroseconds;
Please login to merge, or discard this patch.
src/Bgy/TransientFaultHandling/ShouldRetry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
 
10 10
 interface ShouldRetry
11 11
 {
12
-    public function __invoke(int $currentRetryCount, Throwable $lastError, int &$interval);
12
+    public function __invoke(int $currentRetryCount, Throwable $lastError, int&$interval);
13 13
 }
14 14
 
Please login to merge, or discard this patch.