Completed
Branch master (204c6e)
by Nuno
02:03
created
src/Scheduler.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,18 +104,15 @@
 block discarded – undo
104 104
                 if (strpos($schedule, '+') !== false) {
105 105
                     if ($this->startTime instanceof \DateTime && $d < $this->startTime->modify($d->format('Y-m-d'))) {
106 106
                         $d->modify($this->startTime->format('H:i:s'));
107
-                    }
108
-                    elseif ($this->endTime instanceof \DateTime && $d > $this->endTime->modify($d->format('Y-m-d'))) {
107
+                    } elseif ($this->endTime instanceof \DateTime && $d > $this->endTime->modify($d->format('Y-m-d'))) {
109 108
                         $d->modify('next day')->modify($this->startTime->format('H:i:s'));
110 109
                     }
111 110
 
112 111
                     $dates[] = clone $d;
113 112
                     $d->modify($schedule);
114
-                }
115
-                elseif ($this->isInTimeFrame($d->modify($schedule), $fromDateStr)) {
113
+                } elseif ($this->isInTimeFrame($d->modify($schedule), $fromDateStr)) {
116 114
                     $dates[] = clone $d;
117
-                }
118
-                else {
115
+                } else {
119 116
                     --$i;
120 117
                 }
121 118
             }
Please login to merge, or discard this patch.