mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
IcingaNotification: fix CodeSniffer warnings
This commit is contained in:
parent
ab90f51cfa
commit
3aa5ecbd8e
@ -55,9 +55,19 @@ class IcingaNotification extends IcingaObject
|
|||||||
'times_end' => 'times_end',
|
'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()
|
protected function renderTimes_begin()
|
||||||
{
|
{
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
$times = (object) array(
|
$times = (object) array(
|
||||||
'begin' => c::renderInterval($this->times_begin)
|
'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()
|
protected function renderTimes_end()
|
||||||
{
|
{
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
if ($this->times_begin !== null) {
|
if ($this->times_begin !== null) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user