Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class HomepageAccessibleCheck implements HealthCheck |
||
11 | 1 | { |
|
12 | public function check(): bool |
||
13 | 1 | { |
|
14 | return $this->get_http_response_code(Homepage::url()) == 200; |
||
15 | } |
||
16 | 1 | ||
17 | private function get_http_response_code(string $url) |
||
33 | } |
||
34 | 1 | ||
35 | public function message(): string |
||
38 | } |
||
39 | |||
40 | public function notifiers(): array |
||
47 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: