expected = $bool; return $this; } public function run(): Result { $actual = config('app.debug'); $result = Result::make() ->meta([ 'actual' => $actual, 'expected' => $this->expected, ]) ->shortSummary($this->convertToWord($actual)); return $this->expected === $actual ? $result->ok() : $result->failed(trans('admin/health.results.debugmode.failed', [ 'actual' => $this->convertToWord($actual), 'expected' => $this->convertToWord($this->expected), ])); } protected function convertToWord(bool $boolean): string { return $boolean ? 'true' : 'false'; } }