🎨 PHP code formatting

This commit is contained in:
Pierre Goiffon
2019-01-16 17:25:48 +01:00
parent 8c642827f3
commit 885f4a64a4

View File

@@ -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;
} }