mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
🎨 PHP code formatting
This commit is contained in:
@@ -103,6 +103,7 @@ class NotifyOnExpiration implements iScheduledProcess
|
|||||||
}
|
}
|
||||||
$oRet->setTime((int)$aMatches[1], (int)$aMatches[2]);
|
$oRet->setTime((int)$aMatches[1], (int)$aMatches[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $oRet;
|
return $oRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,6 +215,7 @@ class NotifyOnExpiration implements iScheduledProcess
|
|||||||
{
|
{
|
||||||
$sReport .= " (".implode(", ", $aReport['not_triggered']).")";
|
$sReport .= " (".implode(", ", $aReport['not_triggered']).")";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sReport;
|
return $sReport;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -227,7 +229,15 @@ class NotifyOnExpiration implements iScheduledProcess
|
|||||||
*/
|
*/
|
||||||
public function InterpretWeekDays()
|
public function InterpretWeekDays()
|
||||||
{
|
{
|
||||||
static $aWEEKDAYTON = array('monday' => 1, 'tuesday' => 2, 'wednesday' => 3, 'thursday' => 4, 'friday' => 5, 'saturday' => 6, 'sunday' => 7);
|
static $aWEEKDAYTON = array(
|
||||||
|
'monday' => 1,
|
||||||
|
'tuesday' => 2,
|
||||||
|
'wednesday' => 3,
|
||||||
|
'thursday' => 4,
|
||||||
|
'friday' => 5,
|
||||||
|
'saturday' => 6,
|
||||||
|
'sunday' => 7,
|
||||||
|
);
|
||||||
$aDays = array();
|
$aDays = array();
|
||||||
$sWeekDays = MetaModel::GetConfig()->GetModuleSetting(static::MODULE_CODE, static::KEY_MODULE_SETTING_WEEKDAYS,
|
$sWeekDays = MetaModel::GetConfig()->GetModuleSetting(static::MODULE_CODE, static::KEY_MODULE_SETTING_WEEKDAYS,
|
||||||
static::DEFAULT_MODULE_SETTING_WEEKDAYS);
|
static::DEFAULT_MODULE_SETTING_WEEKDAYS);
|
||||||
@@ -253,6 +263,7 @@ class NotifyOnExpiration implements iScheduledProcess
|
|||||||
}
|
}
|
||||||
$aDays = array_unique($aDays);
|
$aDays = array_unique($aDays);
|
||||||
sort($aDays);
|
sort($aDays);
|
||||||
|
|
||||||
return $aDays;
|
return $aDays;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user