@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | $configuration = $this->getConfiguration(); |
29 | - $timeShift = isset($configuration['timeShift']) ? (int) $configuration['timeShift'] : 0; |
|
29 | + $timeShift = isset($configuration['timeShift']) ? (int)$configuration['timeShift'] : 0; |
|
30 | 30 | if ($timeShift <= 0) { |
31 | 31 | // shift is disabled |
32 | 32 | return; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Build the timetable for the given configuration matrix (sorted). |
23 | 23 | * |
24 | - * @param array $ids |
|
24 | + * @param integer[] $ids |
|
25 | 25 | * |
26 | 26 | * @return array |
27 | 27 | */ |
@@ -174,7 +174,7 @@ |
||
174 | 174 | } |
175 | 175 | /** @var \DateTime $base */ |
176 | 176 | $base = clone $record[$position . '_date']; |
177 | - if (\is_int($record[$position . '_time']) && (int) $record[$position . '_time'] > 0) { |
|
177 | + if (\is_int($record[$position . '_time']) && (int)$record[$position . '_time'] > 0) { |
|
178 | 178 | // Fix handling, if the time field contains a complete timestamp |
179 | 179 | $seconds = $record[$position . '_time'] % DateTimeUtility::SECONDS_DAY; |
180 | 180 | $base->setTime(0, 0, 0); |
@@ -35,6 +35,6 @@ |
||
35 | 35 | ], |
36 | 36 | ]; |
37 | 37 | |
38 | - return parent::renderLink($this->getPageUid($this->arguments['pageUid'], 'detailPid'), $additionalParams, (bool) $this->arguments['absolute']); |
|
38 | + return parent::renderLink($this->getPageUid($this->arguments['pageUid'], 'detailPid'), $additionalParams, (bool)$this->arguments['absolute']); |
|
39 | 39 | } |
40 | 40 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $this->arguments['index'], |
53 | 53 | $this->arguments['future'], |
54 | 54 | $this->arguments['past'], |
55 | - (int) $this->arguments['limit'], |
|
55 | + (int)$this->arguments['limit'], |
|
56 | 56 | $this->arguments['sort'], |
57 | 57 | $this->arguments['useIndexTime'] |
58 | 58 | ); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | protected function getItems(\DateTime $date) |
23 | 23 | { |
24 | 24 | $months = []; |
25 | - $date->setDate((int) $date->format('Y'), (int) $date->format('n'), 1); |
|
25 | + $date->setDate((int)$date->format('Y'), (int)$date->format('n'), 1); |
|
26 | 26 | for ($i = 0; $i < 12; ++$i) { |
27 | 27 | $months[$date->format('n')] = [ |
28 | 28 | 'week' => $date->format('n'), |
@@ -38,8 +38,8 @@ |
||
38 | 38 | $dateClone->modify('first day of this month'); |
39 | 39 | |
40 | 40 | $monthCheck = $dateClone->format('m'); |
41 | - while ((int) $monthCheck === (int) $dateClone->format('m')) { |
|
42 | - $week = (int) $dateClone->format('W'); |
|
41 | + while ((int)$monthCheck === (int)$dateClone->format('m')) { |
|
42 | + $week = (int)$dateClone->format('W'); |
|
43 | 43 | if (!isset($weeks[$week])) { |
44 | 44 | $weeks[$week] = [ |
45 | 45 | 'week' => $week, |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function render() |
32 | 32 | { |
33 | - $content = null === $this->arguments['content'] || '' === \trim((string) $this->arguments['content']) ? $this->renderChildren() : $this->arguments['content']; |
|
33 | + $content = null === $this->arguments['content'] || '' === \trim((string)$this->arguments['content']) ? $this->renderChildren() : $this->arguments['content']; |
|
34 | 34 | |
35 | 35 | return GeneralUtility::quoteJSvalue($content); |
36 | 36 | } |
@@ -82,11 +82,11 @@ discard block |
||
82 | 82 | if (!$languageField || !$transPointer) { |
83 | 83 | return; |
84 | 84 | } |
85 | - if ((int) $record[$transPointer] > 0) { |
|
85 | + if ((int)$record[$transPointer] > 0) { |
|
86 | 86 | // no Index for language child elements |
87 | 87 | return; |
88 | 88 | } |
89 | - $language = (int) $record[$languageField]; |
|
89 | + $language = (int)$record[$languageField]; |
|
90 | 90 | |
91 | 91 | foreach (\array_keys($neededItems) as $key) { |
92 | 92 | $neededItems[$key]['sys_language_uid'] = $language; |
@@ -109,16 +109,16 @@ discard block |
||
109 | 109 | |
110 | 110 | $addFields = []; |
111 | 111 | if (isset($enableFields['disabled'])) { |
112 | - $addFields['hidden'] = (int) $record[$enableFields['disabled']]; |
|
112 | + $addFields['hidden'] = (int)$record[$enableFields['disabled']]; |
|
113 | 113 | } |
114 | 114 | if (isset($enableFields['starttime'])) { |
115 | - $addFields['starttime'] = (int) $record[$enableFields['starttime']]; |
|
115 | + $addFields['starttime'] = (int)$record[$enableFields['starttime']]; |
|
116 | 116 | } |
117 | 117 | if (isset($enableFields['endtime'])) { |
118 | - $addFields['endtime'] = (int) $record[$enableFields['endtime']]; |
|
118 | + $addFields['endtime'] = (int)$record[$enableFields['endtime']]; |
|
119 | 119 | } |
120 | 120 | if (isset($enableFields['fe_group'])) { |
121 | - $addFields['fe_group'] = (string) $record[$enableFields['fe_group']]; |
|
121 | + $addFields['fe_group'] = (string)$record[$enableFields['fe_group']]; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | foreach ($neededItems as $key => $value) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | if ($value instanceof \DateTimeInterface) { |
138 | 138 | $record[$key] = $value->getTimestamp(); |
139 | 139 | } elseif (\is_bool($value) || 'start_time' === $key || 'end_time' === $key) { |
140 | - $record[$key] = (int) $value; |
|
140 | + $record[$key] = (int)$value; |
|
141 | 141 | } elseif (null === $value) { |
142 | 142 | $record[$key] = ''; |
143 | 143 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | if ('' === $id && '' === $name) { |
35 | 35 | return ''; |
36 | 36 | } |
37 | - $times = $this->getTimes((int) $params['pid']); |
|
37 | + $times = $this->getTimes((int)$params['pid']); |
|
38 | 38 | if (!$times) { |
39 | 39 | return ''; |
40 | 40 | } |