@@ -243,7 +243,7 @@ |
||
| 243 | 243 | $sort = $this->settings['sorting']; |
| 244 | 244 | $this->checkStaticTemplateIsIncluded(); |
| 245 | 245 | $this->slotExtendedAssignMultiple([ |
| 246 | - 'indices' => $this->indexRepository->findByPast($limit, $sort), |
|
| 246 | + 'indices' => $this->indexRepository->findByPast($limit, $sort), |
|
| 247 | 247 | ], __CLASS__, __FUNCTION__); |
| 248 | 248 | } |
| 249 | 249 | |
@@ -86,12 +86,12 @@ |
||
| 86 | 86 | try { |
| 87 | 87 | $startDateTime = new \DateTime($icalEvent['DTSTART']); |
| 88 | 88 | if($icalEvent['DTEND']) { |
| 89 | - $endDateTime = new \DateTime($icalEvent['DTEND']); |
|
| 90 | - } |
|
| 89 | + $endDateTime = new \DateTime($icalEvent['DTEND']); |
|
| 90 | + } |
|
| 91 | 91 | else { |
| 92 | - $endDateTime = clone($startDateTime); |
|
| 93 | - $endDateTime->add(new \DateInterval($icalEvent['DURATION'])); |
|
| 94 | - } |
|
| 92 | + $endDateTime = clone($startDateTime); |
|
| 93 | + $endDateTime->add(new \DateInterval($icalEvent['DURATION'])); |
|
| 94 | + } |
|
| 95 | 95 | } catch (\Exception $ex) { |
| 96 | 96 | $this->enqueueMessage( |
| 97 | 97 | 'Could not convert the date in the right format of "' . $icalEvent['SUMMARY'] . '"', |
@@ -87,8 +87,7 @@ |
||
| 87 | 87 | $startDateTime = new \DateTime($icalEvent['DTSTART']); |
| 88 | 88 | if($icalEvent['DTEND']) { |
| 89 | 89 | $endDateTime = new \DateTime($icalEvent['DTEND']); |
| 90 | - } |
|
| 91 | - else { |
|
| 90 | + } else { |
|
| 92 | 91 | $endDateTime = clone($startDateTime); |
| 93 | 92 | $endDateTime->add(new \DateInterval($icalEvent['DURATION'])); |
| 94 | 93 | } |