@@ -34,7 +34,7 @@ |
||
| 34 | 34 | if ('' === $id && '' === $name) { |
| 35 | 35 | return ''; |
| 36 | 36 | } |
| 37 | - $times = $this->getTimes((int) $params['pid']); |
|
| 37 | + $times = $this->getTimes((int)$params['pid']); |
|
| 38 | 38 | if (!$times) { |
| 39 | 39 | return ''; |
| 40 | 40 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | // clone and reset and move to next month |
| 68 | 68 | $dateTime = clone $date; |
| 69 | - $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), 1); |
|
| 69 | + $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1); |
|
| 70 | 70 | $dateTime->modify($modify); |
| 71 | 71 | |
| 72 | 72 | $days = $this->getValidDays($day); |
@@ -162,15 +162,15 @@ discard block |
||
| 162 | 162 | protected function findDayInCurrentMonth(\DateTime $dateTime, string $direction, array $validDays, int $position = 1) |
| 163 | 163 | { |
| 164 | 164 | if (self::DIRECTION_UP === $direction) { |
| 165 | - $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), 1); |
|
| 165 | + $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1); |
|
| 166 | 166 | $modify = '+1 day'; |
| 167 | 167 | } else { |
| 168 | - $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), (int) $dateTime->format('t')); |
|
| 168 | + $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), (int)$dateTime->format('t')); |
|
| 169 | 169 | $modify = '-1 day'; |
| 170 | 170 | } |
| 171 | 171 | $validMonth = $dateTime->format('Y-m'); |
| 172 | 172 | while ($dateTime->format('Y-m') === $validMonth) { |
| 173 | - if (\in_array((int) $dateTime->format('N'), $validDays, true)) { |
|
| 173 | + if (\in_array((int)$dateTime->format('N'), $validDays, true)) { |
|
| 174 | 174 | --$position; |
| 175 | 175 | if (0 === $position) { |
| 176 | 176 | return $dateTime; |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | */ |
| 275 | 275 | public function getFeedTitle(): string |
| 276 | 276 | { |
| 277 | - return (string) $this->getTitle(); |
|
| 277 | + return (string)$this->getTitle(); |
|
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | /** |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | */ |
| 285 | 285 | public function getFeedAbstract(): string |
| 286 | 286 | { |
| 287 | - return (string) $this->getFeedContent(); |
|
| 287 | + return (string)$this->getFeedContent(); |
|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | /** |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | */ |
| 295 | 295 | public function getFeedContent(): string |
| 296 | 296 | { |
| 297 | - return (string) $this->getDescription(); |
|
| 297 | + return (string)$this->getDescription(); |
|
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | */ |
| 305 | 305 | public function getFeedLocation(): string |
| 306 | 306 | { |
| 307 | - return (string) $this->getLocation(); |
|
| 307 | + return (string)$this->getLocation(); |
|
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | /** |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | */ |
| 315 | 315 | public function getRealUrlAliasBase(): string |
| 316 | 316 | { |
| 317 | - return (string) $this->getTitle(); |
|
| 317 | + return (string)$this->getTitle(); |
|
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | /** |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | */ |
| 367 | 367 | public function getKeSearchTitle(Index $index): string |
| 368 | 368 | { |
| 369 | - return (string) $this->getTitle() . ' - ' . $index->getStartDate() |
|
| 369 | + return (string)$this->getTitle() . ' - ' . $index->getStartDate() |
|
| 370 | 370 | ->format('d.m.Y'); |
| 371 | 371 | } |
| 372 | 372 | |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | */ |
| 380 | 380 | public function getKeSearchAbstract(Index $index): string |
| 381 | 381 | { |
| 382 | - return (string) $this->getDescription(); |
|
| 382 | + return (string)$this->getDescription(); |
|
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /** |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | */ |
| 392 | 392 | public function getKeSearchContent(Index $index): string |
| 393 | 393 | { |
| 394 | - return (string) $this->getDescription(); |
|
| 394 | + return (string)$this->getDescription(); |
|
| 395 | 395 | } |
| 396 | 396 | |
| 397 | 397 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | protected static function loadConfiguration() |
| 40 | 40 | { |
| 41 | 41 | if (null === self::$configuration) { |
| 42 | - self::$configuration = (array) \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']); |
|
| 42 | + self::$configuration = (array)\unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']); |
|
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -118,6 +118,6 @@ |
||
| 118 | 118 | ); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - return (array) (new \ICal($absoluteIcalFile))->events(); |
|
| 121 | + return (array)(new \ICal($absoluteIcalFile))->events(); |
|
| 122 | 122 | } |
| 123 | 123 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $objectManager = new ObjectManager(); |
| 78 | 78 | /** @var UriBuilder $uriBuilder */ |
| 79 | 79 | $uriBuilder = $objectManager->get(UriBuilder::class); |
| 80 | - $this->lastHref = (string) $uriBuilder->reset() |
|
| 80 | + $this->lastHref = (string)$uriBuilder->reset() |
|
| 81 | 81 | ->setTargetPageUid($pageUid) |
| 82 | 82 | ->setArguments($additionalParams) |
| 83 | 83 | ->setCreateAbsoluteUri($absolute) |
@@ -104,17 +104,17 @@ discard block |
||
| 104 | 104 | protected function getPageUid($pageUid, $contextName = null) |
| 105 | 105 | { |
| 106 | 106 | if (MathUtility::canBeInterpretedAsInteger($pageUid) && $pageUid > 0) { |
| 107 | - return (int) $pageUid; |
|
| 107 | + return (int)$pageUid; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | // by settings |
| 111 | 111 | if ($contextName && $this->templateVariableContainer->exists('settings')) { |
| 112 | 112 | $settings = $this->templateVariableContainer->get('settings'); |
| 113 | 113 | if (isset($settings[$contextName]) && MathUtility::canBeInterpretedAsInteger($settings[$contextName])) { |
| 114 | - return (int) $settings[$contextName]; |
|
| 114 | + return (int)$settings[$contextName]; |
|
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - return (int) $GLOBALS['TSFE']->id; |
|
| 118 | + return (int)$GLOBALS['TSFE']->id; |
|
| 119 | 119 | } |
| 120 | 120 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function respectPluginConfiguration(array $settings) |
| 26 | 26 | { |
| 27 | - $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int) $settings['pluginConfiguration']); |
|
| 27 | + $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int)$settings['pluginConfiguration']); |
|
| 28 | 28 | if ($settings['pluginConfiguration'] instanceof PluginConfiguration) { |
| 29 | 29 | $checkFields = [ |
| 30 | 30 | 'detailPid', |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $table = 'tx_calendarize_domain_model_pluginconfiguration'; |
| 86 | 86 | |
| 87 | 87 | $db = HelperUtility::getDatabaseConnection($table); |
| 88 | - $row = $db->select(['*'], $table, ['uid' => (int) $uid])->fetch(); |
|
| 88 | + $row = $db->select(['*'], $table, ['uid' => (int)$uid])->fetch(); |
|
| 89 | 89 | |
| 90 | 90 | if (!isset($row['model_name'])) { |
| 91 | 91 | return; |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | // set timezone to UTC |
| 34 | 34 | \date_default_timezone_set('UTC'); |
| 35 | 35 | |
| 36 | - $result = \strftime($this->arguments['format'], (int) $this->arguments['date']->format('U')); |
|
| 36 | + $result = \strftime($this->arguments['format'], (int)$this->arguments['date']->format('U')); |
|
| 37 | 37 | |
| 38 | 38 | // restore timezone setting |
| 39 | 39 | \date_default_timezone_set($timezone); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | $objectManager = new ObjectManager(); |
| 59 | 59 | $pluginConfigurationService = $objectManager->get(PluginConfigurationService::class); |
| 60 | - $this->settings = $pluginConfigurationService->respectPluginConfiguration((array) $this->settings); |
|
| 60 | + $this->settings = $pluginConfigurationService->respectPluginConfiguration((array)$this->settings); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | protected function sendHeaderAndFilename($contentType, $fileExtension) |
| 105 | 105 | { |
| 106 | - $testMode = (bool) $this->settings['feed']['debugMode']; |
|
| 106 | + $testMode = (bool)$this->settings['feed']['debugMode']; |
|
| 107 | 107 | if ($testMode) { |
| 108 | 108 | \header('Content-Type: text/plain; charset=utf-8'); |
| 109 | 109 | } else { |