@@ -68,7 +68,7 @@ |
||
| 68 | 68 | // provide an optional third parameter which is forwarded as |
| 69 | 69 | // dynamic path to getPackagePath(). |
| 70 | 70 | foreach ($extensions as $serviceName => $previousCallable) { |
| 71 | - $extensions[$serviceName] = function (ContainerInterface $container, $value) use ($previousCallable, $packagePath) { |
|
| 71 | + $extensions[$serviceName] = function(ContainerInterface $container, $value) use ($previousCallable, $packagePath) { |
|
| 72 | 72 | return ($previousCallable)($container, $value, $packagePath); |
| 73 | 73 | }; |
| 74 | 74 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | new Reference('service_container') |
| 140 | 140 | ]); |
| 141 | 141 | } else { |
| 142 | - $factoryDefinition->setFactory([ new Reference($this->registryServiceName), 'createService' ]); |
|
| 142 | + $factoryDefinition->setFactory([new Reference($this->registryServiceName), 'createService']); |
|
| 143 | 143 | $factoryDefinition->setArguments([ |
| 144 | 144 | $serviceProviderKey, |
| 145 | 145 | $serviceName, |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | new Reference('service_container') |
| 184 | 184 | ]); |
| 185 | 185 | } else { |
| 186 | - $factoryDefinition->setFactory([ new Reference($this->registryServiceName), 'extendService' ]); |
|
| 186 | + $factoryDefinition->setFactory([new Reference($this->registryServiceName), 'extendService']); |
|
| 187 | 187 | $factoryDefinition->setArguments([ |
| 188 | 188 | $serviceProviderKey, |
| 189 | 189 | $serviceName, |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | } |
| 262 | 262 | return [ |
| 263 | 263 | $serviceName . '_decorated_' . $counter, |
| 264 | - $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter-1) |
|
| 264 | + $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter - 1) |
|
| 265 | 265 | ]; |
| 266 | 266 | } |
| 267 | 267 | } |
@@ -53,11 +53,11 @@ |
||
| 53 | 53 | // create a lazy lookup to a factory from the list of vanilla factories. |
| 54 | 54 | // Lazy because we currently can not know whether a factory will only |
| 55 | 55 | // become available due to a subsequent provider. |
| 56 | - $innerFactory = $this->factories[$id] ?? function (ContainerInterface $c) use (&$factories, $id) { |
|
| 56 | + $innerFactory = $this->factories[$id] ?? function(ContainerInterface $c) use (&$factories, $id) { |
|
| 57 | 57 | return isset($factories[$id]) ? $factories[$id]($c) : null; |
| 58 | 58 | }; |
| 59 | 59 | |
| 60 | - $this->factories[$id] = function (ContainerInterface $container) use ($extension, $innerFactory) { |
|
| 60 | + $this->factories[$id] = function(ContainerInterface $container) use ($extension, $innerFactory) { |
|
| 61 | 61 | $previous = $innerFactory($container); |
| 62 | 62 | return $extension($container, $previous); |
| 63 | 63 | }; |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function __construct(array $earlyInstances) |
| 54 | 54 | { |
| 55 | - $this->defaultServices = $earlyInstances + [ self::class => $this ]; |
|
| 55 | + $this->defaultServices = $earlyInstances + [self::class => $this]; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -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); |
@@ -225,7 +225,7 @@ |
||
| 225 | 225 | if (MathUtility::canBeInterpretedAsInteger($fileUid)) { |
| 226 | 226 | try { |
| 227 | 227 | $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
| 228 | - } catch (FileDoesNotExistException|\InvalidArgumentException $e) { |
|
| 228 | + } catch (FileDoesNotExistException | \InvalidArgumentException $e) { |
|
| 229 | 229 | } |
| 230 | 230 | } |
| 231 | 231 | return $file; |