Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class AbstractAuthorization extends AbstractResponse { |
||
11 | |||
12 | // Status from RFC 8555 (7.1.4), version: March 2019 |
||
13 | |||
14 | const STATUS_PENDING = 'pending'; |
||
15 | const STATUS_VALID = 'valid'; |
||
16 | const STATUS_INVALID = 'invalid'; |
||
17 | const STATUS_DEACTIVATED = 'deactivated'; |
||
18 | const STATUS_EXPIRED = 'expired'; |
||
19 | const STATUS_REVOKED = 'revoked'; |
||
20 | |||
21 | /** |
||
22 | * AbstractAuthorization constructor. |
||
23 | * @param RawResponse $raw |
||
24 | * @throws Exception\InvalidResponse |
||
25 | * @throws Exception\RateLimitReached |
||
26 | * @throws Exception\ExpiredAuthorization |
||
27 | */ |
||
28 | public function __construct(RawResponse $raw) { |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return bool |
||
34 | * @throws Exception\ExpiredAuthorization |
||
35 | */ |
||
36 | protected function _isValid() : bool { |
||
43 | } |
||
44 | } |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.