@@ -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; |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | */ |
| 336 | 336 | public function findWeek($year, $week, $weekStart = 1) |
| 337 | 337 | { |
| 338 | - $weekStart = (int) $weekStart; |
|
| 338 | + $weekStart = (int)$weekStart; |
|
| 339 | 339 | $daysShift = DateTimeUtility::SECONDS_DAY * ($weekStart - 1); |
| 340 | 340 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
| 341 | 341 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | $config = $objectManager->get(ConfigurationManagerInterface::class); |
| 446 | 446 | $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS); |
| 447 | 447 | |
| 448 | - $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict'; |
|
| 448 | + $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict'; |
|
| 449 | 449 | |
| 450 | 450 | return $mode; |
| 451 | 451 | } |