@@ -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) { |
@@ -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; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | $db = HelperUtility::getDatabaseConnection(); |
| 32 | 32 | |
| 33 | - $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int) $event['uid']; |
|
| 33 | + $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int)$event['uid']; |
|
| 34 | 34 | $query = $db->SELECTquery('*', 'sys_file_reference', $selectWhere); |
| 35 | 35 | $selectResults = $db->admin_query($query); |
| 36 | 36 | $dbQueries[] = $query; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | foreach ($selectResults as $selectResult) { |
| 39 | 39 | $updateWhere = ' import_id = \'' . CalMigrationUpdate::IMPORT_PREFIX . $selectResult['uid'] . '\''; |
| 40 | 40 | $fieldValues = [ |
| 41 | - 'uid_foreign' => (int) $recordId, |
|
| 41 | + 'uid_foreign' => (int)$recordId, |
|
| 42 | 42 | 'tablenames' => $table, |
| 43 | 43 | ]; |
| 44 | 44 | |
@@ -116,6 +116,6 @@ |
||
| 116 | 116 | )); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - return (array) (new \ICal($absoluteIcalFile))->events(); |
|
| 119 | + return (array)(new \ICal($absoluteIcalFile))->events(); |
|
| 120 | 120 | } |
| 121 | 121 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | // climb thru the events and hide/delete them |
| 69 | 69 | foreach ($events as $event) { |
| 70 | - $uid = (int) $event['foreign_uid']; |
|
| 70 | + $uid = (int)$event['foreign_uid']; |
|
| 71 | 71 | |
| 72 | 72 | $model = $repository->findByUid($uid); |
| 73 | 73 | |
@@ -100,12 +100,12 @@ discard block |
||
| 100 | 100 | protected function processEvent(EventRepository $repository, Event $model, $modus) |
| 101 | 101 | { |
| 102 | 102 | // define the function for the delete-modus. |
| 103 | - $delete = function ($repository, $model) { |
|
| 103 | + $delete = function($repository, $model) { |
|
| 104 | 104 | $repository->remove($model); |
| 105 | 105 | }; |
| 106 | 106 | |
| 107 | 107 | // define the function for the hide-modus. |
| 108 | - $hide = function ($repository, $model) { |
|
| 108 | + $hide = function($repository, $model) { |
|
| 109 | 109 | $model->setHidden(true); |
| 110 | 110 | $repository->update($model); |
| 111 | 111 | }; |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | protected function findOutdatedEvents($tableName, $waitingPeriod) |
| 142 | 142 | { |
| 143 | 143 | // calculate the waiting time |
| 144 | - $interval = 'P' . (int) $waitingPeriod . 'D'; |
|
| 144 | + $interval = 'P' . (int)$waitingPeriod . 'D'; |
|
| 145 | 145 | $now = DateTimeUtility::getNow(); |
| 146 | 146 | $now->sub(new \DateInterval($interval)); |
| 147 | 147 | |
@@ -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); |