@@ -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 | * |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | foreach ($events as $event) { |
| 127 | 127 | $calendarizeEventRecord = [ |
| 128 | 128 | 'pid' => $event['pid'], |
| 129 | - 'import_id' => self::IMPORT_PREFIX . (int) $event['uid'], |
|
| 129 | + 'import_id' => self::IMPORT_PREFIX . (int)$event['uid'], |
|
| 130 | 130 | 'tstamp' => $event['tstamp'], |
| 131 | 131 | 'crdate' => $event['crdate'], |
| 132 | 132 | 'hidden' => $event['hidden'], |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | foreach ($selectResults as $group) { |
| 245 | 245 | $importId = \explode(':', $group['import_id']); |
| 246 | - $groupId = (int) $importId[1]; |
|
| 246 | + $groupId = (int)$importId[1]; |
|
| 247 | 247 | |
| 248 | 248 | $variables = [ |
| 249 | 249 | 'table' => 'tx_cal_exception_event_mm', |
@@ -257,9 +257,9 @@ discard block |
||
| 257 | 257 | $dbQueries[] = $selectQuery; |
| 258 | 258 | |
| 259 | 259 | foreach ($selectResults as $eventUid) { |
| 260 | - $eventImportId = self::IMPORT_PREFIX . (int) $eventUid['uid_local']; |
|
| 260 | + $eventImportId = self::IMPORT_PREFIX . (int)$eventUid['uid_local']; |
|
| 261 | 261 | $configurationRow = [ |
| 262 | - 'pid' => (int) $group['pid'], |
|
| 262 | + 'pid' => (int)$group['pid'], |
|
| 263 | 263 | 'tstamp' => $now->getTimestamp(), |
| 264 | 264 | 'crdate' => $now->getTimestamp(), |
| 265 | 265 | 'type' => 'group', |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | if ($configurationRow) { |
| 385 | 385 | $configurationRow['groups'] = $this->addValueToCsv($configurationRow['groups'], $configuration['groups']); |
| 386 | 386 | |
| 387 | - $updateWhere = 'uid = ' . (int) $configurationRow['uid']; |
|
| 387 | + $updateWhere = 'uid = ' . (int)$configurationRow['uid']; |
|
| 388 | 388 | unset($configurationRow['uid']); |
| 389 | 389 | $updateQuery = $db->UPDATEquery(self::CONFIGURATION_TABLE, $updateWhere, $configurationRow); |
| 390 | 390 | $results = $db->admin_query($updateQuery); |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | |
| 458 | 458 | $variables = [ |
| 459 | 459 | 'table' => self::EVENT_TABLE, |
| 460 | - 'eventId' => (int) $eventId, |
|
| 460 | + 'eventId' => (int)$eventId, |
|
| 461 | 461 | 'values' => $values, |
| 462 | 462 | 'dbQueries' => $dbQueries, |
| 463 | 463 | ]; |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | $dispatcher = HelperUtility::getSignalSlotDispatcher(); |
| 466 | 466 | $variables = $dispatcher->dispatch(__CLASS__, __FUNCTION__, $variables); |
| 467 | 467 | |
| 468 | - $updateWhere = 'uid = ' . (int) $eventId; |
|
| 468 | + $updateWhere = 'uid = ' . (int)$eventId; |
|
| 469 | 469 | unset($values['uid']); |
| 470 | 470 | $updateQuery = $db->UPDATEquery($variables['table'], $updateWhere, $variables['values']); |
| 471 | 471 | $updateResults = $db->admin_query($updateQuery); |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | 'dbQueries' => $dbQueries, |
| 557 | 557 | ]; |
| 558 | 558 | |
| 559 | - $mmWhere = 'uid_local = ' . (int) $groupId; |
|
| 559 | + $mmWhere = 'uid_local = ' . (int)$groupId; |
|
| 560 | 560 | $mmQuery = $db->SELECTquery('*', $variables['table'], $mmWhere); |
| 561 | 561 | $mmResults = $db->admin_query($mmQuery); |
| 562 | 562 | $dbQueries[] = $mmQuery; |
@@ -567,7 +567,7 @@ discard block |
||
| 567 | 567 | 'dbQueries' => $dbQueries, |
| 568 | 568 | ]; |
| 569 | 569 | |
| 570 | - $selectWhere = 'uid = ' . (int) $mmResult['uid_foreign']; |
|
| 570 | + $selectWhere = 'uid = ' . (int)$mmResult['uid_foreign']; |
|
| 571 | 571 | $selectQuery = $db->SELECTquery('*', $variables['table'], $selectWhere); |
| 572 | 572 | $selectResults = $db->admin_query($selectQuery); |
| 573 | 573 | $dbQueries[] = $selectQuery; |
@@ -581,13 +581,13 @@ discard block |
||
| 581 | 581 | 'handling' => 'include', |
| 582 | 582 | 'start_date' => $this->migrateDate($selectResult['start_date']), |
| 583 | 583 | 'end_date' => $this->migrateDate($selectResult['end_date']), |
| 584 | - 'start_time' => (int) $selectResult['start_time'], |
|
| 585 | - 'end_time' => (int) $selectResult['end_time'], |
|
| 584 | + 'start_time' => (int)$selectResult['start_time'], |
|
| 585 | + 'end_time' => (int)$selectResult['end_time'], |
|
| 586 | 586 | 'all_day' => (null === $selectResult['start_time'] && null === $selectResult['end_time']) ? 1 : 0, |
| 587 | 587 | 'frequency' => $this->mapFrequency($selectResult['freq']), |
| 588 | 588 | 'till_date' => $this->migrateDate($selectResult['until']), |
| 589 | - 'counter_amount' => (int) $selectResult['cnt'], |
|
| 590 | - 'counter_interval' => (int) $selectResult['interval'], |
|
| 589 | + 'counter_amount' => (int)$selectResult['cnt'], |
|
| 590 | + 'counter_interval' => (int)$selectResult['interval'], |
|
| 591 | 591 | 'import_id' => self::IMPORT_PREFIX . $selectResult['uid'], |
| 592 | 592 | ]; |
| 593 | 593 | |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | $query = $db->INSERTquery($variables['table'], $variables['configurationRow']); |
| 603 | 603 | $db->admin_query($query); |
| 604 | 604 | $dbQueries[] = $query; |
| 605 | - $recordIds[] = (int) $db->sql_insert_id(); |
|
| 605 | + $recordIds[] = (int)$db->sql_insert_id(); |
|
| 606 | 606 | } |
| 607 | 607 | } |
| 608 | 608 | |
@@ -668,8 +668,8 @@ discard block |
||
| 668 | 668 | 'l10n_parent' => $category['l18n_parent'], |
| 669 | 669 | 'l10n_diffsource' => $category['l18n_diffsource'], |
| 670 | 670 | 'title' => $category['title'], |
| 671 | - 'parent' => (int) $category['parent_category'], |
|
| 672 | - 'import_id' => self::IMPORT_PREFIX . (int) $category['uid'], |
|
| 671 | + 'parent' => (int)$category['parent_category'], |
|
| 672 | + 'import_id' => self::IMPORT_PREFIX . (int)$category['uid'], |
|
| 673 | 673 | 'sorting' => $category['sorting'], |
| 674 | 674 | ]; |
| 675 | 675 | |
@@ -693,7 +693,7 @@ discard block |
||
| 693 | 693 | foreach ($selectResults as $sysCategory) { |
| 694 | 694 | // update parent, because there are just the old uids |
| 695 | 695 | $updateRecord = [ |
| 696 | - 'parent' => $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int) $sysCategory['parent']), |
|
| 696 | + 'parent' => $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int)$sysCategory['parent']), |
|
| 697 | 697 | ]; |
| 698 | 698 | $query = $db->UPDATEquery('sys_category', 'uid = ' . $sysCategory['uid'], $updateRecord); |
| 699 | 699 | $db->admin_query($query); |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | $dbQueries[] = $selectQuery; |
| 719 | 719 | |
| 720 | 720 | $result = $db->sql_fetch_assoc($selectResults); |
| 721 | - $uid = (int) $result['uid']; |
|
| 721 | + $uid = (int)$result['uid']; |
|
| 722 | 722 | |
| 723 | 723 | return $uid; |
| 724 | 724 | } |
@@ -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 | } |
@@ -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(); |
@@ -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 | { |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public function coolUri($xml, $value) |
| 59 | 59 | { |
| 60 | - $alias = $this->getIndexBase((int) $value); |
|
| 60 | + $alias = $this->getIndexBase((int)$value); |
|
| 61 | 61 | $alias = Functions::URLize($alias); |
| 62 | 62 | $alias = Functions::sanitize_title_with_dashes($alias); |
| 63 | 63 | |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | */ |
| 240 | 240 | protected function getFrequencyLimitPerItem() |
| 241 | 241 | { |
| 242 | - $maxLimit = (int) ConfigurationUtility::get('frequencyLimitPerItem'); |
|
| 242 | + $maxLimit = (int)ConfigurationUtility::get('frequencyLimitPerItem'); |
|
| 243 | 243 | if ($maxLimit <= 0) { |
| 244 | 244 | $maxLimit = 300; |
| 245 | 245 | } |
@@ -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; |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | */ |
| 186 | 186 | public function isAllDay() |
| 187 | 187 | { |
| 188 | - return (bool) $this->allDay; |
|
| 188 | + return (bool)$this->allDay; |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | */ |
| 196 | 196 | public function setAllDay($allDay) |
| 197 | 197 | { |
| 198 | - $this->allDay = (bool) $allDay; |
|
| 198 | + $this->allDay = (bool)$allDay; |
|
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | GeneralUtility::makeInstance(PageRenderer::class)->loadRequireJsModule('TYPO3/CMS/Recordlist/PageLinkHandler'); |
| 62 | 62 | |
| 63 | - $this->expandPage = isset($request->getQueryParams()['expandPage']) ? (int) $request->getQueryParams()['expandPage'] : 0; |
|
| 63 | + $this->expandPage = isset($request->getQueryParams()['expandPage']) ? (int)$request->getQueryParams()['expandPage'] : 0; |
|
| 64 | 64 | $this->setTemporaryDbMounts(); |
| 65 | 65 | |
| 66 | 66 | $backendUser = $this->getBackendUser(); |
@@ -68,9 +68,9 @@ discard block |
||
| 68 | 68 | /** @var ElementBrowserPageTreeView $pageTree */ |
| 69 | 69 | $pageTree = GeneralUtility::makeInstance(ElementBrowserPageTreeView::class); |
| 70 | 70 | $pageTree->setLinkParameterProvider($this); |
| 71 | - $pageTree->ext_showNavTitle = (bool) $backendUser->getTSConfigVal('options.pageTree.showNavTitle'); |
|
| 72 | - $pageTree->ext_showPageId = (bool) $backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle'); |
|
| 73 | - $pageTree->ext_showPathAboveMounts = (bool) $backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts'); |
|
| 71 | + $pageTree->ext_showNavTitle = (bool)$backendUser->getTSConfigVal('options.pageTree.showNavTitle'); |
|
| 72 | + $pageTree->ext_showPageId = (bool)$backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle'); |
|
| 73 | + $pageTree->ext_showPathAboveMounts = (bool)$backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts'); |
|
| 74 | 74 | $pageTree->addField('nav_title'); |
| 75 | 75 | |
| 76 | 76 | $this->view->assign('temporaryTreeMountCancelLink', $this->getTemporaryTreeMountCancelNotice()); |
@@ -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) { |