@@ -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 |