| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function message(array $config): string |
||
| 50 | { |
||
| 51 | if ($this->error !== null) { |
||
| 52 | return trans('self-diagnosis::checks.horizon_is_running.message.unable_to_check', [ |
||
| 53 | 'reason' => $this->error, |
||
| 54 | ]); |
||
| 55 | } |
||
| 56 | |||
| 57 | return trans('self-diagnosis::checks.horizon_is_running.message.not_running'); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |