|
@@ 164-167 (lines=4) @@
|
| 161 |
|
while ($this->startDate <= $this->endDate) { |
| 162 |
|
$str = $this->startDate->format('w'); |
| 163 |
|
|
| 164 |
|
if (!$isOpen && ($str !== $this->config->getWeeksEndsOn()->getValue())) { |
| 165 |
|
$output[$index]['start'] = clone $this->startDate; |
| 166 |
|
$isOpen = true; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
if ($isOpen && ($str === $this->config->getWeeksEndsOn()->getValue())) { |
| 170 |
|
$output[$index]['end'] = clone $this->startDate; |
|
@@ 169-173 (lines=5) @@
|
| 166 |
|
$isOpen = true; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
if ($isOpen && ($str === $this->config->getWeeksEndsOn()->getValue())) { |
| 170 |
|
$output[$index]['end'] = clone $this->startDate; |
| 171 |
|
$isOpen = false; |
| 172 |
|
$index++; |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
if ($isOpen && ($this->startDate == $this->endDate)) { |
| 176 |
|
$output[$index]['end'] = clone $this->startDate; |