|
@@ -33,7 +33,7 @@ discard block |
|
|
block discarded – undo |
|
33
|
33
|
|
|
34
|
34
|
$previewLimit = 10; |
|
35
|
35
|
if (isset($configuration['fieldConf']['config']['items'])) { |
|
36
|
|
- $previewLimit = (int) $configuration['fieldConf']['config']['items']; |
|
|
36
|
+ $previewLimit = (int)$configuration['fieldConf']['config']['items']; |
|
37
|
37
|
} |
|
38
|
38
|
|
|
39
|
39
|
$indexService = GeneralUtility::makeInstance(IndexerService::class); |
|
@@ -76,13 +76,13 @@ discard block |
|
|
block discarded – undo |
|
76
|
76
|
$items = []; |
|
77
|
77
|
foreach ($events as $event) { |
|
78
|
78
|
$startDateStamp = $event['start_date'] instanceof \DateTimeInterface ? $event['start_date']->getTimestamp() : $event['start_date']; |
|
79
|
|
- $startDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $startDateStamp); |
|
|
79
|
+ $startDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$startDateStamp); |
|
80
|
80
|
$endDateStamp = $event['end_date'] instanceof \DateTimeInterface ? $event['end_date']->getTimestamp() : $event['end_date']; |
|
81
|
|
- $endDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $endDateStamp); |
|
|
81
|
+ $endDate = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$endDateStamp); |
|
82
|
82
|
$entry = $startDate . ' - ' . $endDate; |
|
83
|
83
|
if (!$event['all_day']) { |
|
84
|
84
|
$start = BackendUtility::time($event['start_time'] % DateTimeUtility::SECONDS_DAY, false); |
|
85
|
|
- if ((bool) $event['open_end_time']) { |
|
|
85
|
+ if ((bool)$event['open_end_time']) { |
|
86
|
86
|
$end = '"' . TranslateUtility::get('openEndTime') . '"'; |
|
87
|
87
|
} else { |
|
88
|
88
|
$end = BackendUtility::time($event['end_time'] % DateTimeUtility::SECONDS_DAY, false); |
Please login to merge, or discard this patch.