@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | if (null === $configuration) { |
| 115 | 115 | throw new Exception('No valid configuration for the current index: ' . $this->getUniqueRegisterKey(), 123678123); |
| 116 | 116 | } |
| 117 | - $this->originalObject = EventUtility::getOriginalRecordByConfiguration($configuration, (int) $this->getForeignUid()); |
|
| 117 | + $this->originalObject = EventUtility::getOriginalRecordByConfiguration($configuration, (int)$this->getForeignUid()); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | return $this->originalObject; |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | */ |
| 246 | 246 | public function isAllDay() |
| 247 | 247 | { |
| 248 | - return (bool) $this->allDay; |
|
| 248 | + return (bool)$this->allDay; |
|
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | /** |
@@ -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 | /** |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | 'tablenames="tt_content" AND uid_foreign=' . $additionalSlotArguments['contentRecord']['uid'] |
| 107 | 107 | ); |
| 108 | 108 | foreach ($rows as $row) { |
| 109 | - $categoryIds[] = (int) $row['uid_local']; |
|
| 109 | + $categoryIds[] = (int)$row['uid_local']; |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | 'tablenames="' . $this->tableName . '" AND uid_local IN (' . \implode(',', $categoryIds) . ')' |
| 130 | 130 | ); |
| 131 | 131 | foreach ($rows as $row) { |
| 132 | - $indexIds[] = (int) $row['uid_foreign']; |
|
| 132 | + $indexIds[] = (int)$row['uid_foreign']; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | return [ |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | * @signalName findBySearchPre |
| 38 | 38 | * |
| 39 | 39 | * @param array $indexIds |
| 40 | - * @param \DateTime|null $startDate |
|
| 41 | - * @param \DateTime|null $endDate |
|
| 40 | + * @param \DateTime $startDate |
|
| 41 | + * @param \DateTime $endDate |
|
| 42 | 42 | * @param array $customSearch |
| 43 | 43 | * @param bool $emptyPreResult |
| 44 | 44 | * @param array $additionalSlotArguments |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | */ |
| 139 | 139 | protected function nl2br($string) |
| 140 | 140 | { |
| 141 | - $string = \nl2br((string) $string); |
|
| 141 | + $string = \nl2br((string)$string); |
|
| 142 | 142 | |
| 143 | 143 | return \str_replace('\\n', '<br />', $string); |
| 144 | 144 | } |
@@ -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 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public static function convertWeekYear2DayMonthYear($week, $year, $startDay = 1): \DateTime |
| 67 | 67 | { |
| 68 | - $week = \str_pad((string) $week, 2, '0', STR_PAD_LEFT); |
|
| 68 | + $week = \str_pad((string)$week, 2, '0', STR_PAD_LEFT); |
|
| 69 | 69 | |
| 70 | 70 | return self::normalizeDateTimeSingle(\strtotime($year . '-W' . $week . '-' . $startDay)); |
| 71 | 71 | } |
@@ -91,10 +91,10 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public static function getDaySecondsOfDateTime(\DateTime $dateTime): int |
| 93 | 93 | { |
| 94 | - $hours = (int) $dateTime->format('G'); |
|
| 95 | - $minutes = $hours * self::SECONDS_MINUTE + (int) $dateTime->format('i'); |
|
| 94 | + $hours = (int)$dateTime->format('G'); |
|
| 95 | + $minutes = $hours * self::SECONDS_MINUTE + (int)$dateTime->format('i'); |
|
| 96 | 96 | |
| 97 | - return $minutes * self::SECONDS_MINUTE + (int) $dateTime->format('s'); |
|
| 97 | + return $minutes * self::SECONDS_MINUTE + (int)$dateTime->format('s'); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | if (!MathUtility::canBeInterpretedAsInteger($day)) { |
| 119 | 119 | $day = $date->format('d'); |
| 120 | 120 | } |
| 121 | - $date->setDate((int) $year, (int) $month, (int) $day); |
|
| 121 | + $date->setDate((int)$year, (int)$month, (int)$day); |
|
| 122 | 122 | $date->setTime(0, 0, 0); |
| 123 | 123 | if ($date->format('m') > $month) { |
| 124 | 124 | $date->modify('last day of last month'); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | { |
| 180 | 180 | // NOTE that new \DateTime('@timestamp') does NOT work - @see comment in normalizeDateTimeSingle() |
| 181 | 181 | // So we create a date string with timezone information first, and a \DateTime in the current server timezone then. |
| 182 | - return new \DateTime(\date(\DateTime::ATOM, (int) $GLOBALS['SIM_ACCESS_TIME'])); |
|
| 182 | + return new \DateTime(\date(\DateTime::ATOM, (int)$GLOBALS['SIM_ACCESS_TIME'])); |
|
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /** |
@@ -103,7 +103,7 @@ |
||
| 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 { |
@@ -244,7 +244,7 @@ |
||
| 244 | 244 | $sort = $this->settings['sorting']; |
| 245 | 245 | $this->checkStaticTemplateIsIncluded(); |
| 246 | 246 | $this->slotExtendedAssignMultiple([ |
| 247 | - 'indices' => $this->indexRepository->findByPast($limit, $sort) |
|
| 247 | + 'indices' => $this->indexRepository->findByPast($limit, $sort) |
|
| 248 | 248 | ], __CLASS__, __FUNCTION__); |
| 249 | 249 | } |
| 250 | 250 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $configuration = ExtensionConfigurationUtility::get($configurationName); |
| 74 | 74 | |
| 75 | 75 | // get Event by Configuration and Uid |
| 76 | - $event = EventUtility::getOriginalRecordByConfiguration($configuration, (int) $this->request->getArgument('event')); |
|
| 76 | + $event = EventUtility::getOriginalRecordByConfiguration($configuration, (int)$this->request->getArgument('event')); |
|
| 77 | 77 | $index = $this->indexRepository->findByEventTraversing($event, true, false, 1)->getFirst(); |
| 78 | 78 | |
| 79 | 79 | // if there is a valid index in the event |
@@ -295,8 +295,8 @@ discard block |
||
| 295 | 295 | if (null === $week) { |
| 296 | 296 | $week = $now->format('W'); |
| 297 | 297 | } |
| 298 | - $weekStart = (int) $this->settings['weekStart']; |
|
| 299 | - $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int) $week, $year, $weekStart); |
|
| 298 | + $weekStart = (int)$this->settings['weekStart']; |
|
| 299 | + $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear((int)$week, $year, $weekStart); |
|
| 300 | 300 | $timezone = DateTimeUtility::getTimeZone(); |
| 301 | 301 | $firstDay->setTimezone($timezone); |
| 302 | 302 | $firstDay->setTime(0, 0, 0); |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | if (null === $index) { |
| 357 | 357 | // handle fallback for "strange language settings" |
| 358 | 358 | if ($this->request->hasArgument('index')) { |
| 359 | - $indexId = (int) $this->request->getArgument('index'); |
|
| 359 | + $indexId = (int)$this->request->getArgument('index'); |
|
| 360 | 360 | if ($indexId > 0) { |
| 361 | 361 | $index = $this->indexRepository->findByUid($indexId); |
| 362 | 362 | } |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | |
| 365 | 365 | if (null === $index) { |
| 366 | 366 | if (!MathUtility::canBeInterpretedAsInteger($this->settings['listPid'])) { |
| 367 | - return (string) TranslateUtility::get('noEventDetailView'); |
|
| 367 | + return (string)TranslateUtility::get('noEventDetailView'); |
|
| 368 | 368 | } |
| 369 | 369 | $this->slottedRedirect(__CLASS__, __FUNCTION__ . 'noEvent'); |
| 370 | 370 | } |
@@ -486,12 +486,12 @@ discard block |
||
| 486 | 486 | } elseif (MathUtility::canBeInterpretedAsInteger($year)) { |
| 487 | 487 | $indices = $this->indexRepository->findYear((int)$year); |
| 488 | 488 | } else { |
| 489 | - $overrideStartDate = (int) $this->settings['overrideStartdate']; |
|
| 490 | - $overrideEndDate = (int) $this->settings['overrideEnddate']; |
|
| 489 | + $overrideStartDate = (int)$this->settings['overrideStartdate']; |
|
| 490 | + $overrideEndDate = (int)$this->settings['overrideEnddate']; |
|
| 491 | 491 | $indices = $this->indexRepository->findList( |
| 492 | - (int) $this->settings['limit'], |
|
| 492 | + (int)$this->settings['limit'], |
|
| 493 | 493 | $this->settings['listStartTime'], |
| 494 | - (int) $this->settings['listStartTimeOffsetHours'], |
|
| 494 | + (int)$this->settings['listStartTimeOffsetHours'], |
|
| 495 | 495 | $overrideStartDate, |
| 496 | 496 | $overrideEndDate |
| 497 | 497 | ); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Adds a message to the FlashMessageQueue or prints it to the CLI. |
| 29 | 29 | * |
| 30 | - * @param mixed $message |
|
| 30 | + * @param string $message |
|
| 31 | 31 | * @param string $title |
| 32 | 32 | * @param int $severity |
| 33 | 33 | */ |