@@ -118,7 +118,7 @@ |
||
| 118 | 118 | */ |
| 119 | 119 | private function _increment() : void |
| 120 | 120 | { |
| 121 | - $this->_requestCount ++; |
|
| 121 | + $this->_requestCount++; |
|
| 122 | 122 | if ($this->_requestCount === 1) |
| 123 | 123 | { |
| 124 | 124 | $this->_timekeeper->start(); |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | try |
| 27 | 27 | { |
| 28 | 28 | return parent::request($request, $handler); |
| 29 | - } |
|
| 30 | - catch (TooManyRequestsHttpException $tooManyRequestsHttpException) |
|
| 29 | + } catch (TooManyRequestsHttpException $tooManyRequestsHttpException) |
|
| 31 | 30 | { |
| 32 | 31 | $response = $this->_getResponse($request); |
| 33 | 32 | if ($response !== null) |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public static function hasErrorStatusCode(ResponseInterface $response) : bool |
| 21 | 21 | { |
| 22 | - return \in_array(+ \mb_substr($response->getStatusCode(), 0, 1), [4, 5], true); |
|
| 22 | + return \in_array(+\mb_substr($response->getStatusCode(), 0, 1), [4, 5], true); |
|
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |