| @@ -6,8 +6,8 @@ discard block | ||
| 6 | 6 | |
| 7 | 7 | private array $schedules = []; | 
| 8 | 8 | private array $oneTimeEvents = []; | 
| 9 | - private \DateTime|null $startTime = null; | |
| 10 | - private \DateTime|null $endTime = null; | |
| 9 | + private \DateTime | null $startTime = null; | |
| 10 | + private \DateTime | null $endTime = null; | |
| 11 | 11 | |
| 12 | 12 | /** | 
| 13 | 13 | * @return static | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 |          foreach ($this->schedules as $schedule) { | 
| 99 | 99 | $d = new \DateTime($fromDateStr); | 
| 100 | 100 | |
| 101 | -            for ($i=0, $maxRecursion = 100 * $limit; $i < $limit && $maxRecursion > 0; ++$i, --$maxRecursion) { | |
| 101 | +            for ($i = 0, $maxRecursion = 100 * $limit; $i < $limit && $maxRecursion > 0; ++$i, --$maxRecursion) { | |
| 102 | 102 | |
| 103 | 103 |                  if ($this->isDateRelative($schedule)) { | 
| 104 | 104 |                      if ($this->startTime instanceof \DateTime && $d < $this->startTime->modify($d->format('Y-m-d'))) { | 
| @@ -114,7 +114,7 @@ discard block | ||
| 114 | 114 | $d->modify($schedule); | 
| 115 | 115 | } | 
| 116 | 116 |                  elseif ($this->isInTimeFrame($d->modify($schedule), $fromDateStr)) { | 
| 117 | -                    if (!array_key_exists($d->format('YmdHis'), $dates))  { | |
| 117 | +                    if (!array_key_exists($d->format('YmdHis'), $dates)) { | |
| 118 | 118 |                          $dates[$d->format('YmdHis')] = clone $d; | 
| 119 | 119 | } | 
| 120 | 120 | } |