From 2f09dbe68a6818dc2ec8f03f6f681b7df2a18429 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 29 Apr 2022 16:15:26 +0200 Subject: [PATCH] DashboardsController: `$this->httpNotFound()` already accepts format params there's no need to use `sprintf` explicitly --- application/controllers/DashboardsController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/DashboardsController.php b/application/controllers/DashboardsController.php index 321d05034..4f75e5888 100644 --- a/application/controllers/DashboardsController.php +++ b/application/controllers/DashboardsController.php @@ -168,7 +168,7 @@ class DashboardsController extends CompatController $this->dashboard->load($home); if (! $this->dashboard->getActiveHome()->hasEntry($pane)) { - $this->httpNotFound(sprintf(t('Pane "%s" not found'), $pane)); + $this->httpNotFound(t('Pane "%s" not found'), $pane); } $paneForm = (new HomePaneForm($this->dashboard)) @@ -191,7 +191,7 @@ class DashboardsController extends CompatController $this->dashboard->load($home); if (! $this->dashboard->getActiveHome()->hasEntry($paneParam)) { - $this->httpNotFound(sprintf(t('Pane "%s" not found'), $paneParam)); + $this->httpNotFound(t('Pane "%s" not found'), $paneParam); } $paneForm = new RemoveHomePaneForm($this->dashboard); @@ -459,12 +459,12 @@ class DashboardsController extends CompatController $this->dashboard->load($home); if (! $this->dashboard->getActiveHome()->hasEntry($pane)) { - $this->httpNotFound(sprintf(t('Pane "%s" not found'), $pane)); + $this->httpNotFound(t('Pane "%s" not found'), $pane); } $pane = $this->dashboard->getActiveHome()->getEntry($pane); if (! $pane->hasEntry($dashlet)) { - $this->httpNotFound(sprintf(t('Dashlet "%s" not found'), $dashlet)); + $this->httpNotFound(t('Dashlet "%s" not found'), $dashlet); } return $pane;