From 66551400302eafffbb027ab9e4ef6b905f6a660d Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 16 Dec 2019 16:04:44 +0100 Subject: [PATCH] ServiceController: Move protected methods --- application/controllers/ServiceController.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index afd78bdb..c63c4e44 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -53,16 +53,6 @@ class ServiceController extends Controller $this->setTitleTab($this->getRequest()->getActionName()); } - public function getCommandTargetsUrl() - { - return Links::service($this->service, $this->service->host); - } - - public function fetchCommandTargets() - { - return [$this->service]; - } - public function indexAction() { if ($this->service->state->is_overdue) { @@ -218,4 +208,14 @@ class ServiceController extends Controller $this->view->title = $tab->getLabel(); } } + + public function fetchCommandTargets() + { + return [$this->service]; + } + + public function getCommandTargetsUrl() + { + return Links::service($this->service, $this->service->host); + } }