Completed
Push — master ( e5b404...a20ef9 )
by Nuno
12s
created
src/Scheduler.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@  discard block
 block discarded – undo
103 103
                 if ($this->isDateRelative($schedule)) {
104 104
                     if ($this->startTime instanceof \DateTime && $d < $this->startTime->modify($d->format('Y-m-d'))) {
105 105
                         $d->modify($this->startTime->format('H:i:s'));
106
-                    }
107
-                    elseif ($this->endTime instanceof \DateTime && $d > $this->endTime->modify($d->format('Y-m-d'))) {
106
+                    } elseif ($this->endTime instanceof \DateTime && $d > $this->endTime->modify($d->format('Y-m-d'))) {
108 107
                         $d->modify('next day')->modify($this->startTime->format('H:i:s'));
109 108
                     }
110 109
 
@@ -112,13 +111,11 @@  discard block
 block discarded – undo
112 111
                         $dates[$d->format('YmdHis')] = clone $d;
113 112
                     }
114 113
                     $d->modify($schedule);
115
-                }
116
-                elseif ($this->isInTimeFrame($d->modify($schedule), $fromDateStr)) {
114
+                } elseif ($this->isInTimeFrame($d->modify($schedule), $fromDateStr)) {
117 115
                     if (!array_key_exists($d->format('YmdHis'), $dates))  {
118 116
                         $dates[$d->format('YmdHis')] = clone $d;
119 117
                     }
120
-                }
121
-                else {
118
+                } else {
122 119
                     --$i;
123 120
                 }
124 121
             }
Please login to merge, or discard this patch.