@@ -86,33 +86,33 @@ |
||
86 | 86 | |
87 | 87 | $html = []; |
88 | 88 | $html[] = '<div class="t3-form-field-container-flexsections t3-flex-section t3js-flex-section">'; |
89 | - $html[] = '<input class="t3-flex-control t3js-flex-control-action" type="hidden" name="' . htmlspecialchars($actionFieldName) . '" value="" />'; |
|
90 | - $html[] = '<div class="panel panel-default panel-condensed">'; |
|
91 | - $html[] = '<div class="panel-heading t3js-flex-section-header" data-toggle="formengine-flex">'; |
|
92 | - $html[] = '<div class="form-irre-header">'; |
|
93 | - $html[] = '<div class="form-irre-header-cell form-irre-header-icon">'; |
|
94 | - $html[] = $toggleIcons; |
|
95 | - $html[] = '</div>'; |
|
96 | - $html[] = '<div class="form-irre-header-cell form-irre-header-body">'; |
|
97 | - $html[] = '<span class="t3js-record-title">' . htmlspecialchars($containerTitle) . '</span>'; |
|
98 | - $html[] = '</div>'; |
|
99 | - $html[] = '<div class="form-irre-header-cell form-irre-header-control">'; |
|
100 | - $html[] = '<div class="btn-group btn-group-sm">'; |
|
101 | - $html[] = implode(LF, $moveAndDeleteContent); |
|
102 | - $html[] = '</div>'; |
|
103 | - $html[] = '</div>'; |
|
104 | - $html[] = '</div>'; |
|
105 | - $html[] = '</div>'; |
|
106 | - $html[] = '<div class="panel-collapse t3js-flex-section-content"' . ($flexFormContainerElementCollapsed ? ' style="display:none;"' : '') . '>'; |
|
107 | - $html[] = $containerContentResult['html']; |
|
108 | - $html[] = '</div>'; |
|
109 | - $html[] = '<input'; |
|
110 | - $html[] = 'class="t3-flex-control t3js-flex-control-toggle"'; |
|
111 | - $html[] = 'type="hidden"'; |
|
112 | - $html[] = 'name="' . htmlspecialchars($toggleFieldName) . '"'; |
|
113 | - $html[] = 'value="' . ($flexFormContainerElementCollapsed ? '1' : '0') . '"'; |
|
114 | - $html[] = '/>'; |
|
115 | - $html[] = '</div>'; |
|
89 | + $html[] = '<input class="t3-flex-control t3js-flex-control-action" type="hidden" name="' . htmlspecialchars($actionFieldName) . '" value="" />'; |
|
90 | + $html[] = '<div class="panel panel-default panel-condensed">'; |
|
91 | + $html[] = '<div class="panel-heading t3js-flex-section-header" data-toggle="formengine-flex">'; |
|
92 | + $html[] = '<div class="form-irre-header">'; |
|
93 | + $html[] = '<div class="form-irre-header-cell form-irre-header-icon">'; |
|
94 | + $html[] = $toggleIcons; |
|
95 | + $html[] = '</div>'; |
|
96 | + $html[] = '<div class="form-irre-header-cell form-irre-header-body">'; |
|
97 | + $html[] = '<span class="t3js-record-title">' . htmlspecialchars($containerTitle) . '</span>'; |
|
98 | + $html[] = '</div>'; |
|
99 | + $html[] = '<div class="form-irre-header-cell form-irre-header-control">'; |
|
100 | + $html[] = '<div class="btn-group btn-group-sm">'; |
|
101 | + $html[] = implode(LF, $moveAndDeleteContent); |
|
102 | + $html[] = '</div>'; |
|
103 | + $html[] = '</div>'; |
|
104 | + $html[] = '</div>'; |
|
105 | + $html[] = '</div>'; |
|
106 | + $html[] = '<div class="panel-collapse t3js-flex-section-content"' . ($flexFormContainerElementCollapsed ? ' style="display:none;"' : '') . '>'; |
|
107 | + $html[] = $containerContentResult['html']; |
|
108 | + $html[] = '</div>'; |
|
109 | + $html[] = '<input'; |
|
110 | + $html[] = 'class="t3-flex-control t3js-flex-control-toggle"'; |
|
111 | + $html[] = 'type="hidden"'; |
|
112 | + $html[] = 'name="' . htmlspecialchars($toggleFieldName) . '"'; |
|
113 | + $html[] = 'value="' . ($flexFormContainerElementCollapsed ? '1' : '0') . '"'; |
|
114 | + $html[] = '/>'; |
|
115 | + $html[] = '</div>'; |
|
116 | 116 | $html[] = '</div>'; |
117 | 117 | |
118 | 118 | $resultArray['html'] = implode(LF, $html); |
@@ -565,7 +565,7 @@ |
||
565 | 565 | } else { |
566 | 566 | $pArray[$cEl['uid']]['_templates'][] = $row; |
567 | 567 | } |
568 | - uasort($pArray, function ($a, $b) { |
|
568 | + uasort($pArray, function($a, $b) { |
|
569 | 569 | return $a['sorting'] - $b['sorting']; |
570 | 570 | }); |
571 | 571 | } |
@@ -124,32 +124,32 @@ discard block |
||
124 | 124 | $html = []; |
125 | 125 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
126 | 126 | $html[] = $fieldInformationHtml; |
127 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
128 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
129 | - $html[] = '<div class="form-wizards-element">'; |
|
127 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
128 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
129 | + $html[] = '<div class="form-wizards-element">'; |
|
130 | 130 | if (!$disabled) { |
131 | 131 | // Add an empty hidden field which will send a blank value if all items are unselected. |
132 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
132 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
133 | 133 | } |
134 | - $html[] = $selectElement; |
|
135 | - $html[] = '</div>'; |
|
134 | + $html[] = $selectElement; |
|
135 | + $html[] = '</div>'; |
|
136 | 136 | if (!$disabled) { |
137 | 137 | if (!empty($fieldControlHtml)) { |
138 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
139 | - $html[] = $fieldControlHtml; |
|
140 | - $html[] = '</div>'; |
|
141 | - $html[] = '</div>'; |
|
138 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
139 | + $html[] = $fieldControlHtml; |
|
140 | + $html[] = '</div>'; |
|
141 | + $html[] = '</div>'; |
|
142 | 142 | } |
143 | - $html[] = '<p>'; |
|
144 | - $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
145 | - $html[] = '</p>'; |
|
143 | + $html[] = '<p>'; |
|
144 | + $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
145 | + $html[] = '</p>'; |
|
146 | 146 | if (!empty($fieldWizardHtml)) { |
147 | 147 | $html[] = '<div class="form-wizards-items-bottom">'; |
148 | 148 | $html[] = $fieldWizardHtml; |
149 | 149 | $html[] = '</div>'; |
150 | 150 | } |
151 | 151 | } |
152 | - $html[] = '</div>'; |
|
152 | + $html[] = '</div>'; |
|
153 | 153 | $html[] = '</div>'; |
154 | 154 | |
155 | 155 | $resultArray['html'] = implode(LF, $html); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | |
196 | 196 | $html = []; |
197 | 197 | $html[] = '<select ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
198 | - $html[] = implode(LF, $optionElements); |
|
198 | + $html[] = implode(LF, $optionElements); |
|
199 | 199 | $html[] = '</select>'; |
200 | 200 | |
201 | 201 | return implode(LF, $html); |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | $html = []; |
79 | 79 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
80 | 80 | $html[] = $fieldInformationHtml; |
81 | - $html[] = '<div class="form-wizards-wrap">'; |
|
82 | - $html[] = '<div class="form-wizards-element">'; |
|
81 | + $html[] = '<div class="form-wizards-wrap">'; |
|
82 | + $html[] = '<div class="form-wizards-element">'; |
|
83 | 83 | foreach ($this->data['parameterArray']['fieldConf']['config']['items'] as $itemNumber => $itemLabelAndValue) { |
84 | 84 | $label = $itemLabelAndValue[0]; |
85 | 85 | $value = $itemLabelAndValue[1]; |
@@ -87,26 +87,26 @@ discard block |
||
87 | 87 | $radioChecked = (string)$value === (string)$this->data['parameterArray']['itemFormElValue'] ? ' checked="checked"' : ''; |
88 | 88 | |
89 | 89 | $html[] = '<div class="radio' . $disabled . '">'; |
90 | - $html[] = '<label for="' . $radioId . '">'; |
|
91 | - $html[] = '<input type="radio"'; |
|
92 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
93 | - $html[] = ' id="' . $radioId . '"'; |
|
94 | - $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
95 | - $html[] = $radioChecked; |
|
96 | - $html[] = $disabled; |
|
97 | - $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
98 | - $html[] = '/>'; |
|
99 | - $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
100 | - $html[] = '</label>'; |
|
90 | + $html[] = '<label for="' . $radioId . '">'; |
|
91 | + $html[] = '<input type="radio"'; |
|
92 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
93 | + $html[] = ' id="' . $radioId . '"'; |
|
94 | + $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
95 | + $html[] = $radioChecked; |
|
96 | + $html[] = $disabled; |
|
97 | + $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
98 | + $html[] = '/>'; |
|
99 | + $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
100 | + $html[] = '</label>'; |
|
101 | 101 | $html[] = '</div>'; |
102 | 102 | } |
103 | - $html[] = '</div>'; |
|
103 | + $html[] = '</div>'; |
|
104 | 104 | if (!$disabled && !empty($fieldWizardHtml)) { |
105 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
106 | - $html[] = $fieldWizardHtml; |
|
107 | - $html[] = '</div>'; |
|
105 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
106 | + $html[] = $fieldWizardHtml; |
|
107 | + $html[] = '</div>'; |
|
108 | 108 | } |
109 | - $html[] = '</div>'; |
|
109 | + $html[] = '</div>'; |
|
110 | 110 | $html[] = '</div>'; |
111 | 111 | |
112 | 112 | $resultArray['html'] = implode(LF, $html); |
@@ -125,7 +125,7 @@ |
||
125 | 125 | ($module instanceof ConfigurableInterface && $module->isEnabled()) |
126 | 126 | || !($module instanceof ConfigurableInterface) |
127 | 127 | ) |
128 | - ) { |
|
128 | + ) { |
|
129 | 129 | $module->onSubmit($configurationToSave, $request); |
130 | 130 | } |
131 | 131 | if ($module instanceof SubmoduleProviderInterface) { |
@@ -52,8 +52,8 @@ |
||
52 | 52 | public function __construct(ConfigurationService $configurationService = null, ModuleLoader $moduleLoader = null) |
53 | 53 | { |
54 | 54 | $this->configurationService = $configurationService |
55 | - ?? |
|
56 | - GeneralUtility::makeInstance(ConfigurationService::class); |
|
55 | + ?? |
|
56 | + GeneralUtility::makeInstance(ConfigurationService::class); |
|
57 | 57 | $this->adminPanelModuleConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] ?? []; |
58 | 58 | $this->moduleLoader = $moduleLoader ?? GeneralUtility::makeInstance(ModuleLoader::class); |
59 | 59 | } |
@@ -81,8 +81,8 @@ |
||
81 | 81 | $this->moduleLoader = $moduleLoader ?? GeneralUtility::makeInstance(ModuleLoader::class); |
82 | 82 | $this->uriBuilder = $uriBuilder ?? GeneralUtility::makeInstance(UriBuilder::class); |
83 | 83 | $this->configurationService = $configurationService |
84 | - ?? |
|
85 | - GeneralUtility::makeInstance(ConfigurationService::class); |
|
84 | + ?? |
|
85 | + GeneralUtility::makeInstance(ConfigurationService::class); |
|
86 | 86 | $this->adminPanelModuleConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] ?? []; |
87 | 87 | } |
88 | 88 |
@@ -133,12 +133,12 @@ |
||
133 | 133 | $requestId = $request->getAttribute('adminPanelRequestId'); |
134 | 134 | $data = $cache->get($requestId); |
135 | 135 | $moduleResources = ResourceUtility::getAdditionalResourcesForModules($this->modules); |
136 | - $settingsModules = array_filter($this->modules, function (ModuleInterface $module) { |
|
136 | + $settingsModules = array_filter($this->modules, function(ModuleInterface $module) { |
|
137 | 137 | return $module instanceof PageSettingsProviderInterface; |
138 | 138 | }); |
139 | 139 | $parentModules = array_filter( |
140 | 140 | $this->modules, |
141 | - function (ModuleInterface $module) { |
|
141 | + function(ModuleInterface $module) { |
|
142 | 142 | return $module instanceof SubmoduleProviderInterface && $module instanceof ShortInfoProviderInterface; |
143 | 143 | } |
144 | 144 | ); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | public function getDescription(): string |
107 | 107 | { |
108 | 108 | return 'Form definition files need to be named *.form.yaml to have a way of distinguishing form yaml ' . |
109 | - 'configuration files from other yaml configuration files. This wizard will analyze and rename found files.'; |
|
109 | + 'configuration files from other yaml configuration files. This wizard will analyze and rename found files.'; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -187,8 +187,8 @@ discard block |
||
187 | 187 | } else { |
188 | 188 | $this->output->writeln( |
189 | 189 | '<warning>There are references to form definitions which are located in extensions and thus cannot be renamed automatically by this wizard.' |
190 | - . 'This form definitions from extensions that do not end with .form.yaml have to be renamed by hand!' |
|
191 | - . 'After that you can run this wizard again to migrate the references.</warning>' |
|
190 | + . 'This form definitions from extensions that do not end with .form.yaml have to be renamed by hand!' |
|
191 | + . 'After that you can run this wizard again to migrate the references.</warning>' |
|
192 | 192 | ); |
193 | 193 | } |
194 | 194 | } |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | $success = false; |
346 | 346 | $this->output->writeln(sprintf( |
347 | 347 | '<error>Failed to rename form definition "%s" to "%s". You have to be rename it by hand!. ' |
348 | - . 'After that you can run this wizard again to migrate the references.</error>', |
|
348 | + . 'After that you can run this wizard again to migrate the references.</error>', |
|
349 | 349 | $formDefinitionInformation['persistenceIdentifier'], |
350 | 350 | $this->getNewPersistenceIdentifier($formDefinitionInformation['persistenceIdentifier']) |
351 | 351 | )); |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | */ |
374 | 374 | protected function getFormDefinitionsInformationFromStorages(): array |
375 | 375 | { |
376 | - $formDefinitionsInformation = []; |
|
376 | + $formDefinitionsInformation = []; |
|
377 | 377 | |
378 | 378 | foreach ($this->persistenceManager->retrieveYamlFilesFromStorageFolders() as $file) { |
379 | 379 | $persistenceIdentifier = $file->getCombinedIdentifier(); |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | */ |
400 | 400 | protected function getFormDefinitionsInformationFromExtensions(): array |
401 | 401 | { |
402 | - $formDefinitionsInformation = []; |
|
402 | + $formDefinitionsInformation = []; |
|
403 | 403 | |
404 | 404 | foreach ($this->persistenceManager->retrieveYamlFilesFromExtensionFolders() as $persistenceIdentifier => $_) { |
405 | 405 | try { |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | |
604 | 604 | return array_filter( |
605 | 605 | $flexform['data'], |
606 | - function ($key) { |
|
606 | + function($key) { |
|
607 | 607 | return $key !== 'sDEF' && strlen($key) === 32; |
608 | 608 | }, |
609 | 609 | ARRAY_FILTER_USE_KEY |
@@ -155,7 +155,7 @@ |
||
155 | 155 | $incompleteWizards = $upgradeWizardsService->getUpgradeWizardsList(); |
156 | 156 | $incompleteWizards = array_filter( |
157 | 157 | $incompleteWizards, |
158 | - function ($wizard) { |
|
158 | + function($wizard) { |
|
159 | 159 | return $wizard['shouldRenderWizard']; |
160 | 160 | } |
161 | 161 | ); |