@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public function renderLink($pageUid = null, array $additionalParams = [], $absolute = false) |
| 54 | 54 | { |
| 55 | 55 | $uriBuilder = $this->controllerContext->getUriBuilder(); |
| 56 | - $this->lastHref = (string) $uriBuilder->reset() |
|
| 56 | + $this->lastHref = (string)$uriBuilder->reset() |
|
| 57 | 57 | ->setTargetPageUid($pageUid) |
| 58 | 58 | ->setArguments($additionalParams) |
| 59 | 59 | ->setCreateAbsoluteUri($absolute) |
@@ -80,17 +80,17 @@ discard block |
||
| 80 | 80 | protected function getPageUid($pageUid, $contextName = null) |
| 81 | 81 | { |
| 82 | 82 | if (MathUtility::canBeInterpretedAsInteger($pageUid) && $pageUid > 0) { |
| 83 | - return (int) $pageUid; |
|
| 83 | + return (int)$pageUid; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | // by settings |
| 87 | 87 | if ($contextName && $this->templateVariableContainer->exists('settings')) { |
| 88 | 88 | $settings = $this->templateVariableContainer->get('settings'); |
| 89 | 89 | if (isset($settings[$contextName]) && MathUtility::canBeInterpretedAsInteger($settings[$contextName])) { |
| 90 | - return (int) $settings[$contextName]; |
|
| 90 | + return (int)$settings[$contextName]; |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - return (int) $GLOBALS['TSFE']->id; |
|
| 94 | + return (int)$GLOBALS['TSFE']->id; |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | * |
| 126 | 126 | * @throws Exception |
| 127 | 127 | * |
| 128 | - * @return array |
|
| 128 | + * @return string[] |
|
| 129 | 129 | */ |
| 130 | 130 | public function getGroupMemberSet($principal) |
| 131 | 131 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | // set timezone to UTC |
| 30 | 30 | date_default_timezone_set('UTC'); |
| 31 | 31 | |
| 32 | - $result = strftime($format, (int) $date->format('U')); |
|
| 32 | + $result = strftime($format, (int)$date->format('U')); |
|
| 33 | 33 | |
| 34 | 34 | // restore timezone setting |
| 35 | 35 | date_default_timezone_set($timezone); |
@@ -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 | ); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | protected function getItems(\DateTime $date) |
| 23 | 23 | { |
| 24 | 24 | $months = []; |
| 25 | - $date->setDate((int) $date->format('Y'), (int) $date->format('n'), 1); |
|
| 25 | + $date->setDate((int)$date->format('Y'), (int)$date->format('n'), 1); |
|
| 26 | 26 | for ($i = 0; $i < 12; ++$i) { |
| 27 | 27 | $months[$date->format('n')] = [ |
| 28 | 28 | 'week' => $date->format('n'), |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | $dateClone->modify('first day of this month'); |
| 39 | 39 | |
| 40 | 40 | $monthCheck = $dateClone->format('m'); |
| 41 | - while ((int) $monthCheck === (int) $dateClone->format('m')) { |
|
| 42 | - $week = (int) $dateClone->format('W'); |
|
| 41 | + while ((int)$monthCheck === (int)$dateClone->format('m')) { |
|
| 42 | + $week = (int)$dateClone->format('W'); |
|
| 43 | 43 | if (!isset($weeks[$week])) { |
| 44 | 44 | $weeks[$week] = [ |
| 45 | 45 | 'week' => $week, |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function render() |
| 32 | 32 | { |
| 33 | - $content = null === $this->arguments['content'] || '' === \trim((string) $this->arguments['content']) ? $this->renderChildren() : $this->arguments['content']; |
|
| 33 | + $content = null === $this->arguments['content'] || '' === \trim((string)$this->arguments['content']) ? $this->renderChildren() : $this->arguments['content']; |
|
| 34 | 34 | |
| 35 | 35 | return GeneralUtility::quoteJSvalue($content); |
| 36 | 36 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $actions = $this->flexFormService->get('switchableControllerActions', 'main'); |
| 66 | 66 | $parts = GeneralUtility::trimExplode(';', $actions, true); |
| 67 | - $parts = \array_map(function ($element) { |
|
| 67 | + $parts = \array_map(function($element) { |
|
| 68 | 68 | $split = \explode('->', $element); |
| 69 | 69 | |
| 70 | 70 | return \ucfirst($split[1]); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | $this->layoutService->addRow(TranslateUtility::get('mode'), TranslateUtility::get('mode.' . $actionKey)); |
| 75 | 75 | |
| 76 | - $pluginConfiguration = (int) $this->flexFormService->get('settings.pluginConfiguration', 'main'); |
|
| 76 | + $pluginConfiguration = (int)$this->flexFormService->get('settings.pluginConfiguration', 'main'); |
|
| 77 | 77 | if ($pluginConfiguration) { |
| 78 | 78 | $table = 'tx_calendarize_domain_model_pluginconfiguration'; |
| 79 | 79 | $row = HelperUtility::getDatabaseConnection()->exec_SELECTgetSingleRow( |
@@ -87,21 +87,21 @@ discard block |
||
| 87 | 87 | ); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if ('' !== \trim((string) $this->flexFormService->get('settings.configuration', 'general'))) { |
|
| 90 | + if ('' !== \trim((string)$this->flexFormService->get('settings.configuration', 'general'))) { |
|
| 91 | 91 | $this->layoutService->addRow( |
| 92 | 92 | TranslateUtility::get('configuration'), |
| 93 | 93 | $this->flexFormService->get('settings.configuration', 'general') |
| 94 | 94 | ); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - if ((bool) $this->flexFormService->get('settings.hidePagination', 'main')) { |
|
| 97 | + if ((bool)$this->flexFormService->get('settings.hidePagination', 'main')) { |
|
| 98 | 98 | $this->layoutService->addRow(TranslateUtility::get('hide.pagination.teaser'), '!!!'); |
| 99 | 99 | } |
| 100 | - $overrideStartDate = (int) $this->flexFormService->get('settings.overrideStartdate', 'main'); |
|
| 100 | + $overrideStartDate = (int)$this->flexFormService->get('settings.overrideStartdate', 'main'); |
|
| 101 | 101 | if ($overrideStartDate) { |
| 102 | 102 | $this->layoutService->addRow('OverrideStartdate', \date('d.m.y H:i', $overrideStartDate)); |
| 103 | 103 | } |
| 104 | - $overrideEndDate = (int) $this->flexFormService->get('settings.overrideEnddate', 'main'); |
|
| 104 | + $overrideEndDate = (int)$this->flexFormService->get('settings.overrideEnddate', 'main'); |
|
| 105 | 105 | if ($overrideEndDate) { |
| 106 | 106 | $this->layoutService->addRow('OverrideEndDate', \date('d.m.y H:i', $overrideEndDate)); |
| 107 | 107 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | 'bookingPid', |
| 127 | 127 | ]; |
| 128 | 128 | foreach ($pageIdsNames as $pageIdName) { |
| 129 | - $pageId = (int) $this->flexFormService->get('settings.' . $pageIdName, 'pages'); |
|
| 129 | + $pageId = (int)$this->flexFormService->get('settings.' . $pageIdName, 'pages'); |
|
| 130 | 130 | $pageRow = BackendUtility::getRecord('pages', $pageId); |
| 131 | 131 | if ($pageRow) { |
| 132 | 132 | $this->layoutService->addRow( |
@@ -140,8 +140,8 @@ |
||
| 140 | 140 | { |
| 141 | 141 | $title = ''; |
| 142 | 142 | if ($row['start_date']) { |
| 143 | - $dateStart = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) $row['start_date']); |
|
| 144 | - $dateEnd = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int) ($row['end_date'] ?: $row['start_date'])); |
|
| 143 | + $dateStart = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)$row['start_date']); |
|
| 144 | + $dateEnd = \strftime(DateTimeUtility::FORMAT_DATE_BACKEND, (int)($row['end_date'] ?: $row['start_date'])); |
|
| 145 | 145 | $title .= $dateStart; |
| 146 | 146 | if ($dateStart !== $dateEnd) { |
| 147 | 147 | $title .= ' - ' . $dateEnd; |