@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Find List. |
69 | 69 | * |
70 | 70 | * @param int $limit |
71 | - * @param int|string $listStartTime |
|
71 | + * @param integer $listStartTime |
|
72 | 72 | * @param int $startOffsetHours |
73 | 73 | * @param int $overrideStartDate |
74 | 74 | * @param int $overrideEndDate |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * Find by traversing information. |
204 | 204 | * |
205 | 205 | * @param DomainObjectInterface $event |
206 | - * @param bool|true $future |
|
206 | + * @param boolean $future |
|
207 | 207 | * @param bool|false $past |
208 | 208 | * @param int $limit |
209 | 209 | * @param string $sort |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | ]); |
114 | 114 | } |
115 | 115 | |
116 | - if ((int) $options->getPid() > 0) { |
|
117 | - $query->matching($query->equals('pid', (int) $options->getPid())); |
|
116 | + if ((int)$options->getPid() > 0) { |
|
117 | + $query->matching($query->equals('pid', (int)$options->getPid())); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | $result = $query->execute(); |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | */ |
399 | 399 | public function findWeek($year, $week, $weekStart = 1) |
400 | 400 | { |
401 | - $weekStart = (int) $weekStart; |
|
401 | + $weekStart = (int)$weekStart; |
|
402 | 402 | $daysShift = $weekStart - 1; |
403 | 403 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
404 | 404 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | { |
423 | 423 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index'); |
424 | 424 | |
425 | - return (array) $queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll(); |
|
425 | + return (array)$queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll(); |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | /** |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | $config = $objectManager->get(ConfigurationManagerInterface::class); |
516 | 516 | $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS); |
517 | 517 | |
518 | - $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict'; |
|
518 | + $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict'; |
|
519 | 519 | |
520 | 520 | return $mode; |
521 | 521 | } |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | $arguments['endTime'] = DateTimeUtility::getNow()->getTimestamp() + DateTimeUtility::SECONDS_DECADE; |
612 | 612 | } |
613 | 613 | |
614 | - if ((bool) ConfigurationUtility::get('respectTimesInTimeFrameConstraints')) { |
|
614 | + if ((bool)ConfigurationUtility::get('respectTimesInTimeFrameConstraints')) { |
|
615 | 615 | $this->addDateTimeFrameConstraints($constraints, $query, $arguments); |
616 | 616 | } else { |
617 | 617 | $this->addDateFrameConstraints($constraints, $query, $arguments); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * Add one row to the table. |
40 | 40 | * |
41 | 41 | * @param string $label |
42 | - * @param mixed $value |
|
42 | + * @param string $value |
|
43 | 43 | */ |
44 | 44 | public function addRow($label, $value) |
45 | 45 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $ids = []; |
32 | 32 | foreach ($rows as $row) { |
33 | - $ids[] = (int) $row['uid']; |
|
33 | + $ids[] = (int)$row['uid']; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | return $ids; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | $days = []; |
39 | - $move = (int) ($date->format('N') - ((int) $this->arguments['weekStartsAt'])); |
|
39 | + $move = (int)($date->format('N') - ((int)$this->arguments['weekStartsAt'])); |
|
40 | 40 | $date->modify('-' . $move . ' days'); |
41 | 41 | $inWeek = false; |
42 | 42 | for ($i = 0; $i < 7; ++$i) { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $daysInMonth = $date->format('t'); |
23 | 23 | $days = []; |
24 | - $move = (int) ($date->format('j') - 1); |
|
24 | + $move = (int)($date->format('j') - 1); |
|
25 | 25 | $date->modify('-' . $move . ' days'); |
26 | 26 | |
27 | 27 | for ($i = 0; $i < $daysInMonth; ++$i) { |
@@ -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 | ); |