* @param integer $month
* @param integer $year
* @param array $values
+ * @return array
*/
protected static function calculateMonth($month, $year, array &$values) {
$index = self::findKey($month, $values['month']);
* Calculates the day while adjusting month and year to match given criteria.
*
* Note: The day of a command's execution can be specified by two fields - day
- * of month, and day of week. If both fields are restricted (ie, aren't *), the
+ * of month, and day of week. If both fields are restricted , that is not '*', the
* command will be run when either field matches the current time. -- crontab(5)
*
* @param array $values
if (!$addAnDay) {
self::calculateHour($values, $timeBase);
- $addAnDay = true;
}
}
protected static function calculateValue($fieldName, $fieldValue) {
$values = [];
- // examinate first char
+ // examine first char
$char = mb_substr($fieldValue, 0, 1);
// could be a single value, range or list