protected function nextDaily()
    {
        if (!$this->byHour && !$this->byDay) {
            $this->currentDate = $this->currentDate->modify('+'.$this->interval.' days');

            return;
        }

        if (!empty($this->byHour)) {
            $recurrenceHours = $this->getHours();
        }

        if (!empty($this->byDay)) {
            $recurrenceDays = $this->getDays();
        }

        if (!empty($this->byMonth)) {
            $recurrenceMonths = $this->getMonths();
        }

        do {
            if ($this->byHour) {
                if ('23' == $this->currentDate->format('G')) {
                    // to obey the interval rule
                    $this->currentDate = $this->currentDate->modify('+'.($this->interval - 1).' days');
                }

                $this->currentDate = $this->currentDate->modify('+1 hours');
            } else {
                $this->currentDate = $this->currentDate->modify('+'.$this->interval.' days');
            }

            // Current month of the year
            $currentMonth = $this->currentDate->format('n');

            // Current day of the week
            $currentDay = $this->currentDate->format('w');

            // Current hour of the day
            $currentHour = $this->currentDate->format('G');
        } while (
            ($this->byDay && !in_array($currentDay, $recurrenceDays)) ||
            ($this->byHour && !in_array($currentHour, $recurrenceHours)) ||
            ($this->byMonth && !in_array($currentMonth, $recurrenceMonths))
        );
    }
protected function nextDaily()
    {
        if (!$this->byHour && !$this->byDay) {
            $this->currentDate = $this->currentDate->modify('+'.$this->interval.' days');

            return;
        }

        if (!empty($this->byHour)) {
            $recurrenceHours = $this->getHours();
        }

        if (!empty($this->byDay)) {
            $recurrenceDays = $this->getDays();
        }

        if (!empty($this->byMonth)) {
            $recurrenceMonths = $this->getMonths();
        }

        do {
            if ($this->byHour) {
                if ('23' == $this->currentDate->format('G')) {
                    // to obey the interval rule
                    $this->currentDate = $this->currentDate->modify('+'.($this->interval - 1).' days');
                }

                $this->currentDate = $this->currentDate->modify('+1 hours');
            } else {
                $this->currentDate = $this->currentDate->modify('+'.$this->interval.' days');
            }

            // Current month of the year
            $currentMonth = $this->currentDate->format('n');

            // Current day of the week
            $currentDay = $this->currentDate->format('w');

            // Current hour of the day
            $currentHour = $this->currentDate->format('G');
        } while (
            ($this->byDay && !in_array($currentDay, $recurrenceDays)) ||
            ($this->byHour && !in_array($currentHour, $recurrenceHours)) ||
            ($this->byMonth && !in_array($currentMonth, $recurrenceMonths))
        );
    }
protected function nextDaily ( ) { if ( ! $ this -> byHour && ! $ this -> byDay ) { $ this -> currentDate = $ this -> currentDate -> modify ( '+' . $ this -> interval . ' days' ) ; return ; } if ( ! empty ( $ this -> byHour ) ) { $ recurrenceHours = $ this -> getHours ( ) ; } if ( ! empty ( $ this -> byDay ) ) { $ recurrenceDays = $ this -> getDays ( ) ; } if ( ! empty ( $ this -> byMonth ) ) { $ recurrenceMonths = $ this -> getMonths ( ) ; } do { if ( $ this -> byHour ) { if ( '23' == $ this -> currentDate -> format ( 'G' ) ) { // to obey the interval rule $ this -> currentDate = $ this -> currentDate -> modify ( '+' . ( $ this -> interval - 1 ) . ' days' ) ; } $ this -> currentDate = $ this -> currentDate -> modify ( '+1 hours' ) ; } else { $ this -> currentDate = $ this -> currentDate -> modify ( '+' . $ this -> interval . ' days' ) ; } // Current month of the year $ currentMonth = $ this -> currentDate -> format ( 'n' ) ; // Current day of the week $ currentDay = $ this -> currentDate -> format ( 'w' ) ; // Current hour of the day $ currentHour = $ this -> currentDate -> format ( 'G' ) ; } while ( ( $ this -> byDay && ! in_array ( $ currentDay , $ recurrenceDays ) ) || ( $ this -> byHour && ! in_array ( $ currentHour , $ recurrenceHours ) ) || ( $ this -> byMonth && ! in_array ( $ currentMonth , $ recurrenceMonths ) ) ) ; }
Does the processing for advancing the iterator for daily frequency.
Does the processing for advancing the iterator for daily frequency .