HealthController: Add return statement in new line because render() returns nothing

This commit is contained in:
Sukhwinder Dhillon 2023-08-16 11:26:12 +02:00 committed by raviks789
parent 63556849c9
commit 8d55385e38

View File

@ -88,7 +88,8 @@ class HealthController extends Controller
$this->handleFormatRequest($programStatus); $this->handleFormatRequest($programStatus);
$programStatus = $programStatus->fetchRow(); $programStatus = $programStatus->fetchRow();
if ($programStatus === false) { if ($programStatus === false) {
return $this->render('not-running', true, null); $this->render('not-running', true, null);
return;
} }
$this->view->programStatus = $programStatus; $this->view->programStatus = $programStatus;
$toggleFeaturesForm = new ToggleInstanceFeaturesCommandForm(); $toggleFeaturesForm = new ToggleInstanceFeaturesCommandForm();