Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | 4 | public function __invoke( |
|
23 | int $retries, |
||
24 | RequestInterface $request, |
||
25 | ResponseInterface $response = null, |
||
26 | \Exception $exception = null |
||
27 | ): bool { |
||
28 | 4 | if ($this->isUnauthorizedResponse($retries, $response)) { |
|
29 | 2 | $this->cacheHandler->deleteItemByProvider($this->provider, $this->config); |
|
30 | 2 | return true; |
|
31 | } |
||
32 | 4 | return false; |
|
33 | } |
||
34 | |||
40 |