| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 69.23% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class HomepageAccessibleCheck implements HealthCheck |
||
| 11 | { |
||
| 12 | 1 | public function check(): bool |
|
| 13 | { |
||
| 14 | 1 | return $this->get_http_response_code(Homepage::url()) == 200; |
|
| 15 | } |
||
| 16 | |||
| 17 | 1 | private function get_http_response_code(string $url) |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function message(): string |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | 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: