@@ -52,7 +52,7 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | protected function getCwYear(\DateTime $date) |
| 54 | 54 | { |
| 55 | - $year = (int) $date->format('Y'); |
|
| 55 | + $year = (int)$date->format('Y'); |
|
| 56 | 56 | if ('01' === $date->format('m') && ('52' === $date->format('W') || '53' === $date->format('W'))) { |
| 57 | 57 | --$year; |
| 58 | 58 | } else { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
| 32 | 32 | { |
| 33 | - $content = \trim((string) $renderChildrenClosure()); |
|
| 33 | + $content = \trim((string)$renderChildrenClosure()); |
|
| 34 | 34 | if (!empty($content)) { |
| 35 | 35 | $GLOBALS['TSFE']->altPageTitle = $content; |
| 36 | 36 | $GLOBALS['TSFE']->indexedDocTitle = $content; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function render() |
| 42 | 42 | { |
| 43 | - $langUid = (int) $this->arguments['languageUid']; |
|
| 43 | + $langUid = (int)$this->arguments['languageUid']; |
|
| 44 | 44 | if (\array_key_exists($langUid, self::$flags)) { |
| 45 | 45 | return self::$flags[$langUid]; |
| 46 | 46 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | $out .= $title; |
| 60 | 60 | |
| 61 | - self::$flags[$this->arguments['languageUid']] = (string) $out; |
|
| 61 | + self::$flags[$this->arguments['languageUid']] = (string)$out; |
|
| 62 | 62 | |
| 63 | 63 | return $out; |
| 64 | 64 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | if (empty($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; |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | */ |
| 248 | 248 | public function isAllDay() |
| 249 | 249 | { |
| 250 | - return (bool) $this->allDay; |
|
| 250 | + return (bool)$this->allDay; |
|
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | /** |
@@ -357,6 +357,6 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | public function getSysLanguageUid() |
| 359 | 359 | { |
| 360 | - return (int) $this->_languageUid; |
|
| 360 | + return (int)$this->_languageUid; |
|
| 361 | 361 | } |
| 362 | 362 | } |