@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $backoff = new ExponentialBackoff(5); |
40 | 40 | |
41 | 41 | try { |
42 | - $response = $backoff->execute(function () use ($method, $parameters) { |
|
42 | + $response = $backoff->execute(function() use ($method, $parameters) { |
|
43 | 43 | return $this->statClient->performQuery($method, $parameters); |
44 | 44 | }); |
45 | 45 | } catch (ClientException $e) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | protected function checkMaximumDateRange(Carbon $fromDate, Carbon $toDate, $maxDays = 31) |
64 | 64 | { |
65 | 65 | if ($fromDate->diffInDays($toDate) > $maxDays) { |
66 | - throw ApiException::resultError('The maximum date range between from_date and to_date is '.$maxDays.' days.'); |
|
66 | + throw ApiException::resultError('The maximum date range between from_date and to_date is ' . $maxDays . ' days.'); |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $this->retries = $retries !== null ? (int) $retries : 3; |
34 | 34 | $this->retryFunction = $retryFunction; |
35 | - $this->delayFunction = function ($delay) { |
|
35 | + $this->delayFunction = function($delay) { |
|
36 | 36 | usleep($delay); |
37 | 37 | }; |
38 | 38 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return call_user_func_array($function, $arguments); |
57 | 57 | } catch (\Exception $exception) { |
58 | 58 | if ($this->retryFunction) { |
59 | - if (! call_user_func($this->retryFunction, $exception)) { |
|
59 | + if (!call_user_func($this->retryFunction, $exception)) { |
|
60 | 60 | throw $exception; |
61 | 61 | } |
62 | 62 | } |