protected function generateTimeOccurrences($dateLooper)
    {
        $occurrences = [];

        foreach ($this->byhours as $hour)
        {
            foreach ($this->byminutes as $minute)
            {
                foreach ($this->byseconds as $second)
                {
                    $occurrence = clone $dateLooper;
                    $occurrence->setTime($hour, $minute, $second);
                    $occurrences[] = $occurrence;
                }
            }
        }

        return $occurrences;
    }
protected function generateTimeOccurrences($dateLooper)
    {
        $occurrences = [];

        foreach ($this->byhours as $hour)
        {
            foreach ($this->byminutes as $minute)
            {
                foreach ($this->byseconds as $second)
                {
                    $occurrence = clone $dateLooper;
                    $occurrence->setTime($hour, $minute, $second);
                    $occurrences[] = $occurrence;
                }
            }
        }

        return $occurrences;
    }
protected function generateTimeOccurrences ( $ dateLooper ) { $ occurrences = [ ] ; foreach ( $ this -> byhours as $ hour ) { foreach ( $ this -> byminutes as $ minute ) { foreach ( $ this -> byseconds as $ second ) { $ occurrence = clone $ dateLooper ; $ occurrence -> setTime ( $ hour , $ minute , $ second ) ; $ occurrences [ ] = $ occurrence ; } } } return $ occurrences ; }
not happy with this.
not happy with this .