@@ -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) { |
@@ -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) { |
@@ -36,8 +36,8 @@ |
||
36 | 36 | $dateClone->modify('first day of this month'); |
37 | 37 | |
38 | 38 | $monthCheck = $dateClone->format('m'); |
39 | - while ((int) $monthCheck == (int) $dateClone->format('m')) { |
|
40 | - $week = (int) $dateClone->format('W'); |
|
39 | + while ((int)$monthCheck == (int)$dateClone->format('m')) { |
|
40 | + $week = (int)$dateClone->format('W'); |
|
41 | 41 | if (!isset($weeks[$week])) { |
42 | 42 | $weeks[$week] = [ |
43 | 43 | 'week' => $week, |
@@ -37,7 +37,7 @@ |
||
37 | 37 | protected static function loadConfiguration() |
38 | 38 | { |
39 | 39 | if (self::$configuration === null) { |
40 | - self::$configuration = (array) unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']); |
|
40 | + self::$configuration = (array)unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']); |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | } |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public static function getDaySecondsOfDateTime(\DateTime $dateTime) |
89 | 89 | { |
90 | - $hours = (int) $dateTime->format('G'); |
|
91 | - $minutes = $hours * self::SECONDS_MINUTE + (int) $dateTime->format('i'); |
|
90 | + $hours = (int)$dateTime->format('G'); |
|
91 | + $minutes = $hours * self::SECONDS_MINUTE + (int)$dateTime->format('i'); |
|
92 | 92 | |
93 | - return $minutes * self::SECONDS_MINUTE + (int) $dateTime->format('s'); |
|
93 | + return $minutes * self::SECONDS_MINUTE + (int)$dateTime->format('s'); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | { |
174 | 174 | // NOTE that new \DateTime('@timestamp') does NOT work - @see comment in normalizeDateTimeSingle() |
175 | 175 | // So we create a date string with timezone information first, and a \DateTime in the current server timezone then. |
176 | - return new \DateTime(date(\DateTime::ATOM, (int) $GLOBALS['SIM_ACCESS_TIME'])); |
|
176 | + return new \DateTime(date(\DateTime::ATOM, (int)$GLOBALS['SIM_ACCESS_TIME'])); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
@@ -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; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | $actions = $this->flexFormService->get('switchableControllerActions', 'main'); |
68 | 68 | $parts = GeneralUtility::trimExplode(';', $actions, true); |
69 | - $parts = array_map(function ($element) { |
|
69 | + $parts = array_map(function($element) { |
|
70 | 70 | $split = explode('->', $element); |
71 | 71 | |
72 | 72 | return ucfirst($split[1]); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | $this->layoutService->addRow(TranslateUtility::get('mode'), TranslateUtility::get('mode.' . $actionKey)); |
77 | 77 | |
78 | - $pluginConfiguration = (int) $this->flexFormService->get('settings.pluginConfiguration', 'main'); |
|
78 | + $pluginConfiguration = (int)$this->flexFormService->get('settings.pluginConfiguration', 'main'); |
|
79 | 79 | if ($pluginConfiguration) { |
80 | 80 | $table = 'tx_calendarize_domain_model_pluginconfiguration'; |
81 | 81 | $row = HelperUtility::getDatabaseConnection()->exec_SELECTgetSingleRow( |
@@ -96,14 +96,14 @@ discard block |
||
96 | 96 | ); |
97 | 97 | } |
98 | 98 | |
99 | - if ((bool) $this->flexFormService->get('settings.hidePagination', 'main')) { |
|
99 | + if ((bool)$this->flexFormService->get('settings.hidePagination', 'main')) { |
|
100 | 100 | $this->layoutService->addRow(TranslateUtility::get('hide.pagination.teaser'), '!!!'); |
101 | 101 | } |
102 | - $overrideStartDate = (int) $this->flexFormService->get('settings.overrideStartdate', 'main'); |
|
102 | + $overrideStartDate = (int)$this->flexFormService->get('settings.overrideStartdate', 'main'); |
|
103 | 103 | if ($overrideStartDate) { |
104 | 104 | $this->layoutService->addRow('OverrideStartdate', date('d.m.y H:i', $overrideStartDate)); |
105 | 105 | } |
106 | - $overrideEndDate = (int) $this->flexFormService->get('settings.overrideEnddate', 'main'); |
|
106 | + $overrideEndDate = (int)$this->flexFormService->get('settings.overrideEnddate', 'main'); |
|
107 | 107 | if ($overrideEndDate) { |
108 | 108 | $this->layoutService->addRow('OverrideEndDate', date('d.m.y H:i', $overrideEndDate)); |
109 | 109 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | 'bookingPid', |
129 | 129 | ]; |
130 | 130 | foreach ($pageIdsNames as $pageIdName) { |
131 | - $pageId = (int) $this->flexFormService->get('settings.' . $pageIdName, 'pages'); |
|
131 | + $pageId = (int)$this->flexFormService->get('settings.' . $pageIdName, 'pages'); |
|
132 | 132 | $pageRow = BackendUtility::getRecord('pages', $pageId); |
133 | 133 | if ($pageRow) { |
134 | 134 | $this->layoutService->addRow( |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'tablenames="tt_content" AND uid_foreign=' . $additionalSlotArguments['contentRecord']['uid'] |
102 | 102 | ); |
103 | 103 | foreach ($rows as $row) { |
104 | - $categoryIds[] = (int) $row['uid_local']; |
|
104 | + $categoryIds[] = (int)$row['uid_local']; |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'tablenames="' . $this->tableName . '" AND uid_local IN (' . implode(',', $categoryIds) . ')' |
125 | 125 | ); |
126 | 126 | foreach ($rows as $row) { |
127 | - $indexIds[] = (int) $row['uid_foreign']; |
|
127 | + $indexIds[] = (int)$row['uid_foreign']; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | return [ |