From 0e49d7beef6b9e8997e4f36a77131c1a9e3a53c1 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 18 Aug 2017 16:40:49 +0200 Subject: [PATCH] CompatController: hints for phpcs violations... ...that are there for compat reasons --- library/vendor/ipl/Web/CompatController.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/library/vendor/ipl/Web/CompatController.php b/library/vendor/ipl/Web/CompatController.php index c6a88a01..19ea595a 100644 --- a/library/vendor/ipl/Web/CompatController.php +++ b/library/vendor/ipl/Web/CompatController.php @@ -170,8 +170,14 @@ class CompatController extends Zend_Controller_Action implements ControlsAndCont return $this->moduleName; } + /** + * @param null $file + * @return Config + * @codingStandardsIgnoreStart + */ public function Config($file = null) { + // @codingStandardsIgnoreEnd if ($this->moduleName === null) { if ($file === null) { return Config::app(); @@ -202,9 +208,11 @@ class CompatController extends Zend_Controller_Action implements ControlsAndCont * Return this controller's module * * @return Module + * @codingStandardsIgnoreStart */ public function Module() { + // @codingStandardsIgnoreEnd if ($this->module === null) { $this->module = Icinga::app()->getModuleManager()->getModule($this->getModuleName()); } @@ -212,9 +220,13 @@ class CompatController extends Zend_Controller_Action implements ControlsAndCont return $this->module; } - + /** + * @return Window + * @codingStandardsIgnoreStart + */ public function Window() { + // @codingStandardsIgnoreEnd if ($this->window === null) { $this->window = new Window( $this->_request->getHeader('X-Icinga-WindowId', Window::UNDEFINED) @@ -252,9 +264,11 @@ class CompatController extends Zend_Controller_Action implements ControlsAndCont * Get the authentication manager * * @return Auth + * @codingStandardsIgnoreStart */ public function Auth() { + // @codingStandardsIgnoreEnd if ($this->auth === null) { $this->auth = Auth::getInstance(); }