@@ 71-75 (lines=5) @@ | ||
68 | $dateTo = new \DateTime($range->dateFrom()->format('Y-m-d H:i:s')); |
|
69 | $dateTo->sub($interval); |
|
70 | $resultRanges[] = new Range($minuend->dateFrom(), $dateTo); |
|
71 | if ($range->dateTo() < $minuend->dateTo()) { |
|
72 | $dateFrom = new \DateTime($range->dateTo()->format('Y-m-d H:i:s')); |
|
73 | $dateFrom->add($interval); |
|
74 | $resultRanges[] = new Range($dateFrom, $minuend->dateTo()); |
|
75 | } |
|
76 | continue; |
|
77 | } |
|
78 | ||
@@ 79-83 (lines=5) @@ | ||
76 | continue; |
|
77 | } |
|
78 | ||
79 | if ($range->dateTo() < $minuend->dateTo()) { |
|
80 | $dateFrom = new \DateTime($range->dateTo()->format('Y-m-d H:i:s')); |
|
81 | $dateFrom->add($interval); |
|
82 | $resultRanges[] = new Range($dateFrom, $minuend->dateTo()); |
|
83 | } |
|
84 | } |
|
85 | return $resultRanges; |
|
86 | } |