@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | } |
273 | 273 | |
274 | 274 | /** |
275 | - * @param $eventImportId |
|
275 | + * @param string $eventImportId |
|
276 | 276 | * @param $configuration |
277 | 277 | * @param $dbQueries |
278 | 278 | * @param $customMessages |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | } |
378 | 378 | |
379 | 379 | /** |
380 | - * @param $eventImportId |
|
380 | + * @param string $eventImportId |
|
381 | 381 | * @param $dbQueries |
382 | 382 | * @param $customMessages |
383 | 383 | * |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | foreach ($events as $event) { |
126 | 126 | $calendarizeEventRecord = [ |
127 | 127 | 'pid' => $event['pid'], |
128 | - 'import_id' => self::IMPORT_PREFIX . (int) $event['uid'], |
|
128 | + 'import_id' => self::IMPORT_PREFIX . (int)$event['uid'], |
|
129 | 129 | 'tstamp' => $event['tstamp'], |
130 | 130 | 'crdate' => $event['crdate'], |
131 | 131 | 'hidden' => $event['hidden'], |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | |
243 | 243 | foreach ($selectResults as $group) { |
244 | 244 | $importId = explode(':', $group['import_id']); |
245 | - $groupId = (int) $importId[1]; |
|
245 | + $groupId = (int)$importId[1]; |
|
246 | 246 | |
247 | 247 | $variables = [ |
248 | 248 | 'table' => 'tx_cal_exception_event_mm', |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | $dbQueries[] = $selectQuery; |
257 | 257 | |
258 | 258 | foreach ($selectResults as $eventUid) { |
259 | - $eventImportId = self::IMPORT_PREFIX . (int) $eventUid['uid_local']; |
|
259 | + $eventImportId = self::IMPORT_PREFIX . (int)$eventUid['uid_local']; |
|
260 | 260 | $configurationRow = [ |
261 | - 'pid' => (int) $group['pid'], |
|
261 | + 'pid' => (int)$group['pid'], |
|
262 | 262 | 'tstamp' => $now->getTimestamp(), |
263 | 263 | 'crdate' => $now->getTimestamp(), |
264 | 264 | 'type' => 'group', |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | if ($configurationRow) { |
289 | 289 | $configurationRow['groups'] = $this->addValueToCsv($configurationRow['groups'], $configuration['groups']); |
290 | 290 | |
291 | - $updateWhere = 'uid = ' . (int) $configurationRow['uid']; |
|
291 | + $updateWhere = 'uid = ' . (int)$configurationRow['uid']; |
|
292 | 292 | unset($configurationRow['uid']); |
293 | 293 | $updateQuery = $db->UPDATEquery(self::CONFIGURATION_TABLE, $updateWhere, $configurationRow); |
294 | 294 | $results = $db->admin_query($updateQuery); |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | |
362 | 362 | $variables = [ |
363 | 363 | 'table' => self::EVENT_TABLE, |
364 | - 'eventId' => (int) $eventId, |
|
364 | + 'eventId' => (int)$eventId, |
|
365 | 365 | 'values' => $values, |
366 | 366 | 'dbQueries' => $dbQueries, |
367 | 367 | ]; |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $dispatcher = HelperUtility::getSignalSlotDispatcher(); |
370 | 370 | $variables = $dispatcher->dispatch(__CLASS__, __FUNCTION__, $variables); |
371 | 371 | |
372 | - $updateWhere = 'uid = ' . (int) $eventId; |
|
372 | + $updateWhere = 'uid = ' . (int)$eventId; |
|
373 | 373 | unset($values['uid']); |
374 | 374 | $updateQuery = $db->UPDATEquery($variables['table'], $updateWhere, $variables['values']); |
375 | 375 | $updateResults = $db->admin_query($updateQuery); |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | 'dbQueries' => $dbQueries, |
461 | 461 | ]; |
462 | 462 | |
463 | - $mmWhere = 'uid_local = ' . (int) $groupId; |
|
463 | + $mmWhere = 'uid_local = ' . (int)$groupId; |
|
464 | 464 | $mmQuery = $db->SELECTquery('*', $variables['table'], $mmWhere); |
465 | 465 | $mmResults = $db->admin_query($mmQuery); |
466 | 466 | $dbQueries[] = $mmQuery; |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | 'dbQueries' => $dbQueries, |
472 | 472 | ]; |
473 | 473 | |
474 | - $selectWhere = 'uid = ' . (int) $mmResult['uid_foreign']; |
|
474 | + $selectWhere = 'uid = ' . (int)$mmResult['uid_foreign']; |
|
475 | 475 | $selectQuery = $db->SELECTquery('*', $variables['table'], $selectWhere); |
476 | 476 | $selectResults = $db->admin_query($selectQuery); |
477 | 477 | $dbQueries[] = $selectQuery; |
@@ -485,13 +485,13 @@ discard block |
||
485 | 485 | 'handling' => 'include', |
486 | 486 | 'start_date' => $this->migrateDate($selectResult['start_date']), |
487 | 487 | 'end_date' => $this->migrateDate($selectResult['end_date']), |
488 | - 'start_time' => (int) $selectResult['start_time'], |
|
489 | - 'end_time' => (int) $selectResult['end_time'], |
|
488 | + 'start_time' => (int)$selectResult['start_time'], |
|
489 | + 'end_time' => (int)$selectResult['end_time'], |
|
490 | 490 | 'all_day' => ($selectResult['start_time'] == null && $selectResult['end_time'] == null) ? 1 : 0, |
491 | 491 | 'frequency' => $this->mapFrequency($selectResult['freq']), |
492 | 492 | 'till_date' => $this->migrateDate($selectResult['until']), |
493 | - 'counter_amount' => (int) $selectResult['cnt'], |
|
494 | - 'counter_interval' => (int) $selectResult['interval'], |
|
493 | + 'counter_amount' => (int)$selectResult['cnt'], |
|
494 | + 'counter_interval' => (int)$selectResult['interval'], |
|
495 | 495 | 'import_id' => self::IMPORT_PREFIX . $selectResult['uid'], |
496 | 496 | ]; |
497 | 497 | |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | $query = $db->INSERTquery($variables['table'], $variables['configurationRow']); |
507 | 507 | $db->admin_query($query); |
508 | 508 | $dbQueries[] = $query; |
509 | - $recordIds[] = (int) $db->sql_insert_id(); |
|
509 | + $recordIds[] = (int)$db->sql_insert_id(); |
|
510 | 510 | } |
511 | 511 | } |
512 | 512 | |
@@ -622,8 +622,8 @@ discard block |
||
622 | 622 | 'l10n_parent' => $category['l18n_parent'], |
623 | 623 | 'l10n_diffsource' => $category['l18n_diffsource'], |
624 | 624 | 'title' => $category['title'], |
625 | - 'parent' => (int) $category['parent_category'], |
|
626 | - 'import_id' => self::IMPORT_PREFIX . (int) $category['uid'], |
|
625 | + 'parent' => (int)$category['parent_category'], |
|
626 | + 'import_id' => self::IMPORT_PREFIX . (int)$category['uid'], |
|
627 | 627 | 'sorting' => $category['sorting'], |
628 | 628 | ]; |
629 | 629 | |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | foreach ($selectResults as $sysCategory) { |
648 | 648 | // update parent, because there are just the old uids |
649 | 649 | $updateRecord = [ |
650 | - 'parent' => $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int) $sysCategory['parent']), |
|
650 | + 'parent' => $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int)$sysCategory['parent']), |
|
651 | 651 | ]; |
652 | 652 | $query = $db->UPDATEquery('sys_category', 'uid = ' . $sysCategory['uid'], $updateRecord); |
653 | 653 | $db->admin_query($query); |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | $dbQueries[] = $selectQuery; |
673 | 673 | |
674 | 674 | $result = $db->sql_fetch_assoc($selectResults); |
675 | - $uid = (int) $result['uid']; |
|
675 | + $uid = (int)$result['uid']; |
|
676 | 676 | |
677 | 677 | return $uid; |
678 | 678 | } |
@@ -751,7 +751,7 @@ discard block |
||
751 | 751 | $dbQueries[] = $selectQuery; |
752 | 752 | |
753 | 753 | $result = $db->sql_fetch_assoc($selectResults); |
754 | - $uid = (int) $result['uid']; |
|
754 | + $uid = (int)$result['uid']; |
|
755 | 755 | |
756 | 756 | return $uid; |
757 | 757 | } |
@@ -786,7 +786,7 @@ discard block |
||
786 | 786 | $dbQueries[] = $selectQuery; |
787 | 787 | |
788 | 788 | $result = $db->sql_fetch_assoc($selectResults); |
789 | - $uid = (int) $result['uid']; |
|
789 | + $uid = (int)$result['uid']; |
|
790 | 790 | |
791 | 791 | return $uid; |
792 | 792 | } |
@@ -813,8 +813,8 @@ discard block |
||
813 | 813 | 'all_day' => $calEventRow['allday'], |
814 | 814 | 'frequency' => $this->mapFrequency($calEventRow['freq']), |
815 | 815 | 'till_date' => $this->migrateDate($calEventRow['until']), |
816 | - 'counter_amount' => (int) $calEventRow['cnt'], |
|
817 | - 'counter_interval' => (int) $calEventRow['interval'], |
|
816 | + 'counter_amount' => (int)$calEventRow['cnt'], |
|
817 | + 'counter_interval' => (int)$calEventRow['interval'], |
|
818 | 818 | ]; |
819 | 819 | |
820 | 820 | $variables = [ |
@@ -914,7 +914,7 @@ discard block |
||
914 | 914 | |
915 | 915 | foreach ($events as $event) { |
916 | 916 | $checkImportIds[] = '"' . self::IMPORT_PREFIX . $event['uid'] . '"'; |
917 | - $nonMigrated[(int) $event['uid']] = (int) $event['uid']; |
|
917 | + $nonMigrated[(int)$event['uid']] = (int)$event['uid']; |
|
918 | 918 | } |
919 | 919 | |
920 | 920 | $countOriginal = count($checkImportIds); |
@@ -936,7 +936,7 @@ discard block |
||
936 | 936 | ); |
937 | 937 | |
938 | 938 | foreach ($migratedRows as $migratedRow) { |
939 | - $importId = (int) str_replace(self::IMPORT_PREFIX, '', $migratedRow['import_id']); |
|
939 | + $importId = (int)str_replace(self::IMPORT_PREFIX, '', $migratedRow['import_id']); |
|
940 | 940 | if (isset($nonMigrated[$importId])) { |
941 | 941 | unset($nonMigrated[$importId]); |
942 | 942 | } |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * Send the content type header and the right file extension in front of the content. |
96 | 96 | * |
97 | 97 | * @param $contentType |
98 | - * @param $fileExtension |
|
98 | + * @param string $fileExtension |
|
99 | 99 | */ |
100 | 100 | protected function sendHeaderAndFilename($contentType, $fileExtension) |
101 | 101 | { |
@@ -99,7 +99,7 @@ |
||
99 | 99 | */ |
100 | 100 | protected function sendHeaderAndFilename($contentType, $fileExtension) |
101 | 101 | { |
102 | - $testMode = (bool) $this->settings['feed']['debugMode']; |
|
102 | + $testMode = (bool)$this->settings['feed']['debugMode']; |
|
103 | 103 | if ($testMode) { |
104 | 104 | header('Content-Type: text/plain; charset=utf-8'); |
105 | 105 | } else { |
@@ -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 |
@@ -287,7 +287,7 @@ |
||
287 | 287 | */ |
288 | 288 | public function findWeek($year, $week, $weekStart = 1) |
289 | 289 | { |
290 | - $weekStart = (int) $weekStart; |
|
290 | + $weekStart = (int)$weekStart; |
|
291 | 291 | $daysShift = DateTimeUtility::SECONDS_DAY * ($weekStart - 1); |
292 | 292 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
293 | 293 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -482,9 +482,9 @@ |
||
482 | 482 | /** |
483 | 483 | * Update cal event. |
484 | 484 | * |
485 | - * @param $calendarId |
|
486 | - * @param $objectUri |
|
487 | - * @param $calendarData |
|
485 | + * @param string $calendarId |
|
486 | + * @param string $objectUri |
|
487 | + * @param string $calendarData |
|
488 | 488 | */ |
489 | 489 | private function updateCalEvent($calendarId, $objectUri, $calendarData) |
490 | 490 | { |
@@ -217,7 +217,7 @@ |
||
217 | 217 | $result = [ |
218 | 218 | 200 => [], // Ok |
219 | 219 | 403 => [], // Forbidden |
220 | - 424 => [], // Failed Dependency |
|
220 | + 424 => [], // Failed Dependency |
|
221 | 221 | ]; |
222 | 222 | |
223 | 223 | $hasError = false; |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * |
122 | 122 | * @param $principal |
123 | 123 | * |
124 | - * @return array |
|
124 | + * @return string[] |
|
125 | 125 | * |
126 | 126 | * @throws Exception |
127 | 127 | */ |
@@ -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 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * @param PluginConfiguration|array $configuration |
19 | 19 | * @param int $uid |
20 | 20 | * |
21 | - * @return object |
|
21 | + * @return \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface |
|
22 | 22 | */ |
23 | 23 | public static function getOriginalRecordByConfiguration($configuration, $uid) |
24 | 24 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | $previewLimit = 10; |
34 | 34 | if (isset($configuration['fieldConf']['config']['items'])) { |
35 | - $previewLimit = (int) $configuration['fieldConf']['config']['items']; |
|
35 | + $previewLimit = (int)$configuration['fieldConf']['config']['items']; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | $indexService = GeneralUtility::makeInstance(IndexerService::class); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $entry = $startDate . ' - ' . $endDate; |
82 | 82 | if (!$event['all_day']) { |
83 | 83 | $start = BackendUtility::time($event['start_time'] % DateTimeUtility::SECONDS_DAY, false); |
84 | - if ((int) $event['end_time'] === AbstractTimeTable::DAY_END) { |
|
84 | + if ((int)$event['end_time'] === AbstractTimeTable::DAY_END) { |
|
85 | 85 | $end = '"' . TranslateUtility::get('openEndTime') . '"'; |
86 | 86 | } else { |
87 | 87 | $end = BackendUtility::time($event['end_time'] % DateTimeUtility::SECONDS_DAY, false); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | if ($id === '' && $name === '') { |
33 | 33 | return ''; |
34 | 34 | } |
35 | - $times = $this->getTimes((int) $params['pid']); |
|
35 | + $times = $this->getTimes((int)$params['pid']); |
|
36 | 36 | if (!$times) { |
37 | 37 | return ''; |
38 | 38 | } |