GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( cdf96f...74e120 )
by Cees-Jan
8s
created

Always::determineTtl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 3
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Middleware\Cache\Strategy;
4
5
use ApiClients\Middleware\Cache\StrategyInterface;
6
use Psr\Http\Message\RequestInterface;
7
use Psr\Http\Message\ResponseInterface;
8
9
final class Always implements StrategyInterface
10
{
11
    const ALWAYS_TTL = 300;
12
13
    public function decide(RequestInterface $request, ResponseInterface $response): bool
14
    {
15
        return true;
16
    }
17
18
    public function determineTtl(
19
        RequestInterface $request,
20
        ResponseInterface $response,
21
        int $default = self::ALWAYS_TTL
22
    ): int {
23
        return $default;
24
    }
25
}
26