@@ -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 |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | class_exists($klass); |
90 | 90 | } |
91 | 91 | |
92 | - $validStrategies = array_filter(get_declared_classes(), function ($className) { |
|
92 | + $validStrategies = array_filter(get_declared_classes(), function($className) { |
|
93 | 93 | return in_array(StorageInterface::class, class_implements($className)); |
94 | 94 | } |
95 | 95 | ); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | class_exists($klass); |
124 | 124 | } |
125 | 125 | |
126 | - $validStrategies = array_filter(get_declared_classes(), function ($className) { |
|
126 | + $validStrategies = array_filter(get_declared_classes(), function($className) { |
|
127 | 127 | return in_array(CacheStrategy::class, class_implements($className)); |
128 | 128 | }); |
129 | 129 | throw new UnknownCacheStrategyException($cacheStrategyClassName, $validStrategies); |