From 3aa5ecbd8e6db60a08ba9b9fca83a0407e1efc6b Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 16 Mar 2016 13:57:53 +0100 Subject: [PATCH] IcingaNotification: fix CodeSniffer warnings --- .../Director/Objects/IcingaNotification.php | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaNotification.php b/library/Director/Objects/IcingaNotification.php index 72441f75..16610e30 100644 --- a/library/Director/Objects/IcingaNotification.php +++ b/library/Director/Objects/IcingaNotification.php @@ -55,9 +55,19 @@ class IcingaNotification extends IcingaObject 'times_end' => 'times_end', ); - // listOfRelations -> users, user_groups + /** + * We have distinct properties in the db + * + * ...but render times only once + * + * And we skip warnings about underscores in method names: + * @codingStandardsIgnoreStart + * + * @return string + */ protected function renderTimes_begin() { + // @codingStandardsIgnoreEnd $times = (object) array( 'begin' => c::renderInterval($this->times_begin) ); @@ -72,8 +82,20 @@ class IcingaNotification extends IcingaObject ); } + /** + * We have distinct properties in the db + * + * ...but render times only once + * + * And we skip warnings about underscores in method names: + * @codingStandardsIgnoreStart + * + * @return string + */ protected function renderTimes_end() { + // @codingStandardsIgnoreEnd + if ($this->times_begin !== null) { return ''; }