src/ICal/ICal.php
protected function reduceEventsToMinMaxRange()
    {
        $events = (isset($this->cal['VEVENT'])) ? $this->cal['VEVENT'] : array();

        if (!empty($events)) {
            foreach ($events as $key => $anEvent) {
                if ($this->doesEventStartOutsideWindow($anEvent)) {
                    $this->eventCount--;

                    unset($events[$key]);

                    continue;
                }
            }

            $this->cal['VEVENT'] = $events;
        }
    }
protected function reduceEventsToMinMaxRange()
    {
        $events = (isset($this->cal['VEVENT'])) ? $this->cal['VEVENT'] : array();

        if (!empty($events)) {
            foreach ($events as $key => $anEvent) {
                if ($this->doesEventStartOutsideWindow($anEvent)) {
                    $this->eventCount--;

                    unset($events[$key]);

                    continue;
                }
            }

            $this->cal['VEVENT'] = $events;
        }
    }
protected function reduceEventsToMinMaxRange ( ) { $ events = ( isset ( $ this -> cal [ 'VEVENT' ] ) ) ? $ this -> cal [ 'VEVENT' ] : array ( ) ; if ( ! empty ( $ events ) ) { foreach ( $ events as $ key => $ anEvent ) { if ( $ this -> doesEventStartOutsideWindow ( $ anEvent ) ) { $ this -> eventCount -- ; unset ( $ events [ $ key ] ) ; continue ; } } $ this -> cal [ 'VEVENT' ] = $ events ; } }
Reduces the number of events to the defined minimum and maximum range

@return void
Reduces the number of events to the defined minimum and maximum range