From b4000d34fbe685ebd00dec294baaf0fff0429595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannis=20Mo=C3=9Fhammer?= Date: Wed, 11 Sep 2013 17:28:36 +0200 Subject: [PATCH] CS: Fixed styles, add codingStandardsIgnore for helper refs #4611 --- application/views/helpers/MainDetail.php | 7 +++++-- library/Icinga/Web/Controller/ActionController.php | 2 +- library/Icinga/Web/Form.php | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/application/views/helpers/MainDetail.php b/application/views/helpers/MainDetail.php index 0996f238d..d601e7d6e 100644 --- a/application/views/helpers/MainDetail.php +++ b/application/views/helpers/MainDetail.php @@ -1,4 +1,6 @@ $size) { + foreach (self::$expanded as $type => $size) { $detailCls .= 'col-' . $type . '-' . ($size == 12 ? 'push-' : '') . $size . ' '; $mainCls .= 'col-' . $type . '-' . ($size == 12 ? 'pull-' : '') . ($size < 12 ? (12-$size) : 12). ' '; } @@ -66,4 +68,5 @@ EOT; $html = str_replace('{{DETAIL_CONTENT}}', $detailContent, $html); return $html; } -} \ No newline at end of file +} +// @codingStandardsIgnoreEnd diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index b6ab1f12a..c9d1e855c 100755 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -172,7 +172,7 @@ class ActionController extends Zend_Controller_Action $this->getResponse()->setHttpResponseCode(401); $this->getResponse()->sendHeaders(); throw new Exception("You are not logged in"); - } + } $url = Url::fromPath('/authentication/login'); $this->redirectNow($url->getRelativeUrl()); } diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 682298462..0e092693f 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -160,7 +160,8 @@ class Form extends Zend_Form * * @param boolean $bool False to not inform users when they leave modified forms, otherwise true */ - public function setIgnoreChangeDiscarding($bool) { + public function setIgnoreChangeDiscarding($bool) + { $this->ignoreChangeDiscarding = (boolean) $bool; }