@@ -119,7 +119,7 @@ |
||
| 119 | 119 | $values = explode($quoteChar . ',' . $quoteChar, substr($valuesDefinition, 1, -1)) ?: []; |
| 120 | 120 | |
| 121 | 121 | return array_map( |
| 122 | - function (string $value) use ($quoteChar) { |
|
| 122 | + function(string $value) use ($quoteChar) { |
|
| 123 | 123 | return str_replace($quoteChar . $quoteChar, $quoteChar, $value); |
| 124 | 124 | }, |
| 125 | 125 | $values |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | if (!empty($GLOBALS['TBE_STYLES']['stylesheets']['admPanel'])) { |
| 83 | 83 | $stylesheet = GeneralUtility::locationHeaderUrl($GLOBALS['TBE_STYLES']['stylesheets']['admPanel']); |
| 84 | 84 | $result = '<link rel="stylesheet" href="' . |
| 85 | - htmlspecialchars($stylesheet, ENT_QUOTES | ENT_HTML5) . '" />'; |
|
| 85 | + htmlspecialchars($stylesheet, ENT_QUOTES | ENT_HTML5) . '" />'; |
|
| 86 | 86 | } |
| 87 | 87 | return $result; |
| 88 | 88 | } |
@@ -96,11 +96,11 @@ discard block |
||
| 96 | 96 | protected static function getCssTag(string $cssFileLocation): string |
| 97 | 97 | { |
| 98 | 98 | $css = '<link rel="stylesheet" href="' . |
| 99 | - htmlspecialchars( |
|
| 100 | - PathUtility::getAbsoluteWebPath(GeneralUtility::getFileAbsFileName($cssFileLocation)), |
|
| 101 | - ENT_QUOTES | ENT_HTML5 |
|
| 102 | - ) . |
|
| 103 | - '" media="all" />'; |
|
| 99 | + htmlspecialchars( |
|
| 100 | + PathUtility::getAbsoluteWebPath(GeneralUtility::getFileAbsFileName($cssFileLocation)), |
|
| 101 | + ENT_QUOTES | ENT_HTML5 |
|
| 102 | + ) . |
|
| 103 | + '" media="all" />'; |
|
| 104 | 104 | return $css; |
| 105 | 105 | } |
| 106 | 106 | |
@@ -113,11 +113,11 @@ discard block |
||
| 113 | 113 | protected static function getJsTag(string $jsFileLocation): string |
| 114 | 114 | { |
| 115 | 115 | $js = '<script src="' . |
| 116 | - htmlspecialchars( |
|
| 117 | - PathUtility::getAbsoluteWebPath(GeneralUtility::getFileAbsFileName($jsFileLocation)), |
|
| 118 | - ENT_QUOTES | ENT_HTML5 |
|
| 119 | - ) . |
|
| 120 | - '"></script>'; |
|
| 116 | + htmlspecialchars( |
|
| 117 | + PathUtility::getAbsoluteWebPath(GeneralUtility::getFileAbsFileName($jsFileLocation)), |
|
| 118 | + ENT_QUOTES | ENT_HTML5 |
|
| 119 | + ) . |
|
| 120 | + '"></script>'; |
|
| 121 | 121 | return $js; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | protected function initializeFileDeclarations(string $fileName): array |
| 131 | 131 | { |
| 132 | - $cspClosure = function (ResponseInterface $response): ?StatusMessage { |
|
| 132 | + $cspClosure = function(ResponseInterface $response): ?StatusMessage { |
|
| 133 | 133 | $cspHeader = new ContentSecurityPolicyHeader( |
| 134 | 134 | $response->getHeaderLine('content-security-policy') |
| 135 | 135 | ); |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | protected function createMismatchMessage(FileDeclaration $fileDeclaration, ResponseInterface $response): string |
| 260 | 260 | { |
| 261 | 261 | $messageParts = array_map( |
| 262 | - function (StatusMessage $mismatch): string { |
|
| 262 | + function(StatusMessage $mismatch): string { |
|
| 263 | 263 | return vsprintf( |
| 264 | 264 | $mismatch->getMessage(), |
| 265 | 265 | $this->wrapValues($mismatch->getValues(), '<code>', '</code>') |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | protected function wrapItems(array $items, string $before, string $after): array |
| 297 | 297 | { |
| 298 | 298 | return array_map( |
| 299 | - function (string $item) use ($before, $after): string { |
|
| 299 | + function(string $item) use ($before, $after): string { |
|
| 300 | 300 | return $before . $item . $after; |
| 301 | 301 | }, |
| 302 | 302 | array_filter($items) |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | protected function wrapValues(array $values, string $before, string $after): array |
| 307 | 307 | { |
| 308 | 308 | return array_map( |
| 309 | - function (string $value) use ($before, $after): string { |
|
| 309 | + function(string $value) use ($before, $after): string { |
|
| 310 | 310 | return $this->wrapValue($value, $before, $after); |
| 311 | 311 | }, |
| 312 | 312 | array_filter($values) |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | ); |
| 178 | 178 | foreach ($context->getLanguagesToShow() as $siteLanguage) { |
| 179 | 179 | $localizedLanguageId = $siteLanguage->getLanguageId(); |
| 180 | - if ($localizedLanguageId <= 0) { |
|
| 180 | + if ($localizedLanguageId <= 0) { |
|
| 181 | 181 | continue; |
| 182 | 182 | } |
| 183 | 183 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | // Map array to correct keys |
| 42 | 42 | $allSessions = array_map( |
| 43 | - function ($session) { |
|
| 43 | + function($session) { |
|
| 44 | 44 | return [ |
| 45 | 45 | 'id' => $session['ses_id'], // this is the hashed sessionId |
| 46 | 46 | 'ip' => $session['ses_iplock'], |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | ); |
| 53 | 53 | |
| 54 | 54 | // Sort by timestamp |
| 55 | - usort($allSessions, function ($session1, $session2) { |
|
| 55 | + usort($allSessions, function($session1, $session2) { |
|
| 56 | 56 | return $session1['timestamp'] <=> $session2['timestamp']; |
| 57 | 57 | }); |
| 58 | 58 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | return array_filter( |
| 73 | 73 | $allActive, |
| 74 | - function ($session) use ($backendUser) { |
|
| 74 | + function($session) use ($backendUser) { |
|
| 75 | 75 | return (int)$session['ses_userid'] === $backendUser->getUid(); |
| 76 | 76 | } |
| 77 | 77 | ); |
@@ -311,7 +311,7 @@ |
||
| 311 | 311 | protected function prefixAttributeNames(string $prefix, array $attributes): array |
| 312 | 312 | { |
| 313 | 313 | $attributeNames = array_map( |
| 314 | - function (string $name) use ($prefix): string { |
|
| 314 | + function(string $name) use ($prefix): string { |
|
| 315 | 315 | return $prefix . $name; |
| 316 | 316 | }, |
| 317 | 317 | array_keys($attributes) |
@@ -261,7 +261,7 @@ |
||
| 261 | 261 | $languageService = $this->getLanguageService(); |
| 262 | 262 | $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar(); |
| 263 | 263 | // View page |
| 264 | - $previewDataAttributes =PreviewUriBuilder::create((int)$this->pageinfo['uid']) |
|
| 264 | + $previewDataAttributes = PreviewUriBuilder::create((int)$this->pageinfo['uid']) |
|
| 265 | 265 | ->withRootLine(BackendUtility::BEgetRootLine($this->pageinfo['uid'])) |
| 266 | 266 | ->buildDispatcherDataAttributes(); |
| 267 | 267 | $viewButton = $buttonBar->makeLinkButton() |
@@ -553,7 +553,7 @@ |
||
| 553 | 553 | $this->iconFactory->getIcon('actions-system-shortcut-active', Icon::SIZE_SMALL)->render() . '</a>'; |
| 554 | 554 | } |
| 555 | 555 | |
| 556 | - $confirmationText = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.makeBookmark'); |
|
| 556 | + $confirmationText = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.makeBookmark'); |
|
| 557 | 557 | $onClick = 'top.TYPO3.ShortcutMenu.createShortcut(' |
| 558 | 558 | . GeneralUtility::quoteJSvalue($routeIdentifier) |
| 559 | 559 | . ', ' . GeneralUtility::quoteJSvalue($arguments) |
@@ -181,7 +181,7 @@ |
||
| 181 | 181 | ): string { |
| 182 | 182 | return preg_replace_callback( |
| 183 | 183 | $pattern, |
| 184 | - static function ($matches) use ($newRewriteRule) { |
|
| 184 | + static function($matches) use ($newRewriteRule) { |
|
| 185 | 185 | return str_replace($matches[2], '', ($matches[1] . $newRewriteRule)) . $matches[3]; |
| 186 | 186 | }, |
| 187 | 187 | $configurationFileContent, |