@@ -200,7 +200,7 @@ |
||
| 200 | 200 | { |
| 201 | 201 | return array_filter( |
| 202 | 202 | $array, |
| 203 | - function ($key) { |
|
| 203 | + function($key) { |
|
| 204 | 204 | return !is_numeric($key); |
| 205 | 205 | }, |
| 206 | 206 | ARRAY_FILTER_USE_KEY |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | |
| 162 | 162 | $length = strlen(max($this->start, $this->end)); |
| 163 | 163 | $range = array_map( |
| 164 | - function ($value) use ($length) { |
|
| 164 | + function($value) use ($length) { |
|
| 165 | 165 | return str_pad($value, $length, '0', STR_PAD_LEFT); |
| 166 | 166 | }, |
| 167 | 167 | $range |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | } |
| 73 | 73 | return array_filter( |
| 74 | 74 | $results, |
| 75 | - function (array $result) { |
|
| 75 | + function(array $result) { |
|
| 76 | 76 | // default FrontendRestrictionContainer retrieves only live records |
| 77 | 77 | // (no specific workspace & move-placeholder resolving required here) |
| 78 | 78 | $pageId = (int)$result['pid']; |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | usort( |
| 50 | 50 | $results, |
| 51 | 51 | // orders records by there occurrence in $languageFallbackIds |
| 52 | - function (array $a, array $b) use ($languageFieldName, $languageIds): int { |
|
| 52 | + function(array $a, array $b) use ($languageFieldName, $languageIds): int { |
|
| 53 | 53 | $languageA = (int)$a[$languageFieldName]; |
| 54 | 54 | $languageB = (int)$b[$languageFieldName]; |
| 55 | 55 | return array_search($languageA, $languageIds, true) |
@@ -151,7 +151,7 @@ |
||
| 151 | 151 | return ''; |
| 152 | 152 | } |
| 153 | 153 | $redecorationPatterns = array_map( |
| 154 | - function (DecoratingEnhancerInterface $decorationEnhancers) { |
|
| 154 | + function(DecoratingEnhancerInterface $decorationEnhancers) { |
|
| 155 | 155 | $pattern = $decorationEnhancers->getRoutePathRedecorationPattern(); |
| 156 | 156 | return '(?:' . $pattern . ')'; |
| 157 | 157 | }, |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | $inputTag->addAttribute('type', 'text'); |
| 436 | 436 | $inputTag->addAttribute('value', $currentValue); |
| 437 | 437 | $inputTag->addAttribute('class', 'form-control'); |
| 438 | - $html .= $inputTag->render(); |
|
| 438 | + $html .= $inputTag->render(); |
|
| 439 | 439 | } |
| 440 | 440 | |
| 441 | 441 | return $html; |
@@ -692,7 +692,7 @@ |
||
| 692 | 692 | } |
| 693 | 693 | } |
| 694 | 694 | } |
| 695 | - return array_filter($duplicatedEntryPoints, static function (array $variants): bool { |
|
| 695 | + return array_filter($duplicatedEntryPoints, static function(array $variants): bool { |
|
| 696 | 696 | return count($variants) > 1 || reset($variants) > 1; |
| 697 | 697 | }, ARRAY_FILTER_USE_BOTH); |
| 698 | 698 | } |
@@ -79,48 +79,48 @@ |
||
| 79 | 79 | |
| 80 | 80 | $html = []; |
| 81 | 81 | $html[] = '<div class="t3js-l10n-state-container">'; |
| 82 | - $html[] = '<div>'; |
|
| 83 | - $html[] = '<strong>'; |
|
| 84 | - $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.header'); |
|
| 85 | - $html[] = '</strong>'; |
|
| 86 | - $html[] = '</div>'; |
|
| 87 | - $html[] = '<div class="radio radio-inline">'; |
|
| 88 | - $html[] = '<label>'; |
|
| 89 | - $html[] = '<input'; |
|
| 90 | - $html[] = ' type="radio"'; |
|
| 91 | - $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 92 | - $html[] = ' class="t3js-l10n-state-custom"'; |
|
| 93 | - $html[] = ' value="custom"'; |
|
| 94 | - $html[] = $localizationState->isCustomState($fieldName) ? ' checked="checked"' : ''; |
|
| 95 | - $html[] = ' data-original-language-value=""'; |
|
| 96 | - $html[] = '>'; |
|
| 97 | - $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.customValue'); |
|
| 98 | - $html[] = '</label>'; |
|
| 99 | - $html[] = '</div>'; |
|
| 100 | - $html[] = '<div class="radio radio-inline">'; |
|
| 101 | - $html[] = '<label>'; |
|
| 102 | - $html[] = '<input'; |
|
| 103 | - $html[] = ' type="radio"'; |
|
| 104 | - $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 105 | - $html[] = ' value="parent"'; |
|
| 106 | - $html[] = $localizationState->isParentState($fieldName) ? ' checked="checked"' : ''; |
|
| 107 | - $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInParentRow) . '"'; |
|
| 108 | - $html[] = '>'; |
|
| 109 | - $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.defaultLanguageValue'); |
|
| 110 | - $html[] = '</label>'; |
|
| 111 | - $html[] = '</div>'; |
|
| 82 | + $html[] = '<div>'; |
|
| 83 | + $html[] = '<strong>'; |
|
| 84 | + $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.header'); |
|
| 85 | + $html[] = '</strong>'; |
|
| 86 | + $html[] = '</div>'; |
|
| 87 | + $html[] = '<div class="radio radio-inline">'; |
|
| 88 | + $html[] = '<label>'; |
|
| 89 | + $html[] = '<input'; |
|
| 90 | + $html[] = ' type="radio"'; |
|
| 91 | + $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 92 | + $html[] = ' class="t3js-l10n-state-custom"'; |
|
| 93 | + $html[] = ' value="custom"'; |
|
| 94 | + $html[] = $localizationState->isCustomState($fieldName) ? ' checked="checked"' : ''; |
|
| 95 | + $html[] = ' data-original-language-value=""'; |
|
| 96 | + $html[] = '>'; |
|
| 97 | + $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.customValue'); |
|
| 98 | + $html[] = '</label>'; |
|
| 99 | + $html[] = '</div>'; |
|
| 100 | + $html[] = '<div class="radio radio-inline">'; |
|
| 101 | + $html[] = '<label>'; |
|
| 102 | + $html[] = '<input'; |
|
| 103 | + $html[] = ' type="radio"'; |
|
| 104 | + $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 105 | + $html[] = ' value="parent"'; |
|
| 106 | + $html[] = $localizationState->isParentState($fieldName) ? ' checked="checked"' : ''; |
|
| 107 | + $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInParentRow) . '"'; |
|
| 108 | + $html[] = '>'; |
|
| 109 | + $html[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.defaultLanguageValue'); |
|
| 110 | + $html[] = '</label>'; |
|
| 111 | + $html[] = '</div>'; |
|
| 112 | 112 | if ($fieldValueInSourceRow !== null) { |
| 113 | 113 | $html[] = '<div class="radio radio-inline">'; |
| 114 | - $html[] = '<label>'; |
|
| 115 | - $html[] = '<input'; |
|
| 116 | - $html[] = ' type="radio"'; |
|
| 117 | - $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 118 | - $html[] = ' value="source"'; |
|
| 119 | - $html[] = $localizationState->isSourceState($fieldName) ? ' checked="checked"' : ''; |
|
| 120 | - $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInSourceRow) . '"'; |
|
| 121 | - $html[] = '>'; |
|
| 122 | - $html[] = sprintf($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.sourceLanguageValue'), htmlspecialchars($sourceLanguageTitle)); |
|
| 123 | - $html[] = '</label>'; |
|
| 114 | + $html[] = '<label>'; |
|
| 115 | + $html[] = '<input'; |
|
| 116 | + $html[] = ' type="radio"'; |
|
| 117 | + $html[] = ' name="' . htmlspecialchars($fieldElementName) . '"'; |
|
| 118 | + $html[] = ' value="source"'; |
|
| 119 | + $html[] = $localizationState->isSourceState($fieldName) ? ' checked="checked"' : ''; |
|
| 120 | + $html[] = ' data-original-language-value="' . htmlspecialchars((string)$fieldValueInSourceRow) . '"'; |
|
| 121 | + $html[] = '>'; |
|
| 122 | + $html[] = sprintf($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_wizards.xlf:localizationStateSelector.sourceLanguageValue'), htmlspecialchars($sourceLanguageTitle)); |
|
| 123 | + $html[] = '</label>'; |
|
| 124 | 124 | $html[] = '</div>'; |
| 125 | 125 | } |
| 126 | 126 | $html[] = '</div>'; |
@@ -142,16 +142,16 @@ |
||
| 142 | 142 | $html = []; |
| 143 | 143 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 144 | 144 | $html[] = $fieldInformationHtml; |
| 145 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 146 | - $html[] = '<div class="form-wizards-element">'; |
|
| 147 | - $html[] = $elementHtml; |
|
| 148 | - $html[] = '</div>'; |
|
| 145 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 146 | + $html[] = '<div class="form-wizards-element">'; |
|
| 147 | + $html[] = $elementHtml; |
|
| 148 | + $html[] = '</div>'; |
|
| 149 | 149 | if (!$disabled && !empty($fieldWizardHtml)) { |
| 150 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 151 | - $html[] = $fieldWizardHtml; |
|
| 152 | - $html[] = '</div>'; |
|
| 150 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
| 151 | + $html[] = $fieldWizardHtml; |
|
| 152 | + $html[] = '</div>'; |
|
| 153 | 153 | } |
| 154 | - $html[] = '</div>'; |
|
| 154 | + $html[] = '</div>'; |
|
| 155 | 155 | $html[] = '</div>'; |
| 156 | 156 | |
| 157 | 157 | $resultArray['html'] = implode(LF, $html); |