| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class HomepageSetCheck implements HealthCheck |
||
| 11 | { |
||
| 12 | public function check(): bool |
||
| 13 | { |
||
| 14 | $homepageValue = chiefSetting(Setting::HOMEPAGE); |
||
| 15 | |||
| 16 | return !!$homepageValue; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function message(): string |
||
| 20 | { |
||
| 21 | return 'Het lijkt erop dat er geen homepagina ingesteld is. Stel er een in hier: <a href="' . route('chief.back.settings.edit') . '" class="text-secondary-800 underline hover:text-white">Settings</a>'; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function notifiers(): array |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: