@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | try { |
359 | 359 | $packagePath = PathUtility::sanitizeTrailingSeparator($this->packagesBasePath . $stateConfiguration['packagePath']); |
360 | 360 | $package = new Package($this, $packageKey, $packagePath); |
361 | - } catch (InvalidPackagePathException|InvalidPackageKeyException|InvalidPackageManifestException $exception) { |
|
361 | + } catch (InvalidPackagePathException | InvalidPackageKeyException | InvalidPackageManifestException $exception) { |
|
362 | 362 | $this->unregisterPackageByPackageKey($packageKey); |
363 | 363 | $packageStatesHasChanged = true; |
364 | 364 | continue; |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | } |
416 | 416 | $this->composerNameToPackageKeyMap = array_filter( |
417 | 417 | $this->composerNameToPackageKeyMap, |
418 | - static function ($aliasedKey) use ($packageKey) { |
|
418 | + static function($aliasedKey) use ($packageKey) { |
|
419 | 419 | return $aliasedKey !== $packageKey; |
420 | 420 | } |
421 | 421 | ); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | 'paginator' => $paginator, |
69 | 69 | 'pagination' => $pagination, |
70 | 70 | 'totalAmountOfBackendUserGroups' => $backendUsers->count(), |
71 | - 'compareGroupUidList' => array_map(static function ($value) { // uid as key and force value to 1 |
|
71 | + 'compareGroupUidList' => array_map(static function($value) { // uid as key and force value to 1 |
|
72 | 72 | return 1; |
73 | 73 | }, array_flip($compareGroupUidList)), |
74 | 74 | 'compareGroupList' => !empty($compareGroupUidList) ? $this->backendUserGroupRepository->findByUidList($compareGroupUidList) : [], |
@@ -49,22 +49,22 @@ discard block |
||
49 | 49 | ], |
50 | 50 | 'insertClipboard' => [ |
51 | 51 | 'renderType' => 'insertClipboard', |
52 | - 'after' => [ 'elementBrowser' ], |
|
52 | + 'after' => ['elementBrowser'], |
|
53 | 53 | ], |
54 | 54 | 'editPopup' => [ |
55 | 55 | 'renderType' => 'editPopup', |
56 | 56 | 'disabled' => true, |
57 | - 'after' => [ 'insertClipboard' ], |
|
57 | + 'after' => ['insertClipboard'], |
|
58 | 58 | ], |
59 | 59 | 'addRecord' => [ |
60 | 60 | 'renderType' => 'addRecord', |
61 | 61 | 'disabled' => true, |
62 | - 'after' => [ 'editPopup' ], |
|
62 | + 'after' => ['editPopup'], |
|
63 | 63 | ], |
64 | 64 | 'listModule' => [ |
65 | 65 | 'renderType' => 'listModule', |
66 | 66 | 'disabled' => true, |
67 | - 'after' => [ 'addRecord' ], |
|
67 | + 'after' => ['addRecord'], |
|
68 | 68 | ], |
69 | 69 | ]; |
70 | 70 | |
@@ -79,19 +79,19 @@ discard block |
||
79 | 79 | ], |
80 | 80 | 'recordsOverview' => [ |
81 | 81 | 'renderType' => 'recordsOverview', |
82 | - 'after' => [ 'tableList' ], |
|
82 | + 'after' => ['tableList'], |
|
83 | 83 | ], |
84 | 84 | 'localizationStateSelector' => [ |
85 | 85 | 'renderType' => 'localizationStateSelector', |
86 | - 'after' => [ 'recordsOverview' ], |
|
86 | + 'after' => ['recordsOverview'], |
|
87 | 87 | ], |
88 | 88 | 'otherLanguageContent' => [ |
89 | 89 | 'renderType' => 'otherLanguageContent', |
90 | - 'after' => [ 'localizationStateSelector' ], |
|
90 | + 'after' => ['localizationStateSelector'], |
|
91 | 91 | ], |
92 | 92 | 'defaultLanguageDifferences' => [ |
93 | 93 | 'renderType' => 'defaultLanguageDifferences', |
94 | - 'after' => [ 'otherLanguageContent' ], |
|
94 | + 'after' => ['otherLanguageContent'], |
|
95 | 95 | ], |
96 | 96 | ]; |
97 | 97 | |
@@ -171,21 +171,21 @@ discard block |
||
171 | 171 | // Return early if element is read only |
172 | 172 | $html = []; |
173 | 173 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
174 | - $html[] = $fieldInformationHtml; |
|
175 | - $html[] = '<div class="form-wizards-wrap">'; |
|
176 | - $html[] = '<div class="form-wizards-element">'; |
|
177 | - $html[] = '<select'; |
|
178 | - $html[] = ' size="' . $size . '"'; |
|
179 | - $html[] = ' disabled="disabled"'; |
|
180 | - $html[] = ' class="form-select"'; |
|
181 | - $html[] = ($maxItems !== 1 && $size !== 1) ? ' multiple="multiple"' : ''; |
|
182 | - $html[] = '>'; |
|
183 | - $html[] = implode(LF, $selectorOptionsHtml); |
|
184 | - $html[] = '</select>'; |
|
185 | - $html[] = '</div>'; |
|
186 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
187 | - $html[] = '</div>'; |
|
188 | - $html[] = '</div>'; |
|
174 | + $html[] = $fieldInformationHtml; |
|
175 | + $html[] = '<div class="form-wizards-wrap">'; |
|
176 | + $html[] = '<div class="form-wizards-element">'; |
|
177 | + $html[] = '<select'; |
|
178 | + $html[] = ' size="' . $size . '"'; |
|
179 | + $html[] = ' disabled="disabled"'; |
|
180 | + $html[] = ' class="form-select"'; |
|
181 | + $html[] = ($maxItems !== 1 && $size !== 1) ? ' multiple="multiple"' : ''; |
|
182 | + $html[] = '>'; |
|
183 | + $html[] = implode(LF, $selectorOptionsHtml); |
|
184 | + $html[] = '</select>'; |
|
185 | + $html[] = '</div>'; |
|
186 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
187 | + $html[] = '</div>'; |
|
188 | + $html[] = '</div>'; |
|
189 | 189 | $html[] = '</div>'; |
190 | 190 | $resultArray['html'] = implode(LF, $html); |
191 | 191 | return $resultArray; |
@@ -264,105 +264,105 @@ discard block |
||
264 | 264 | |
265 | 265 | $html = []; |
266 | 266 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
267 | - $html[] = $fieldInformationHtml; |
|
268 | - $html[] = '<div class="form-wizards-wrap">'; |
|
267 | + $html[] = $fieldInformationHtml; |
|
268 | + $html[] = '<div class="form-wizards-wrap">'; |
|
269 | 269 | if ($internalType === 'db' && (!isset($config['hideSuggest']) || (bool)$config['hideSuggest'] !== true)) { |
270 | - $html[] = '<div class="form-wizards-items-top">'; |
|
271 | - $html[] = '<div class="autocomplete t3-form-suggest-container">'; |
|
272 | - $html[] = '<div class="input-group">'; |
|
273 | - $html[] = '<span class="input-group-addon">'; |
|
274 | - $html[] = $this->iconFactory->getIcon('actions-search', Icon::SIZE_SMALL)->render(); |
|
275 | - $html[] = '</span>'; |
|
276 | - $html[] = '<input type="search" class="t3-form-suggest form-control"'; |
|
277 | - $html[] = ' placeholder="' . $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.findRecord') . '"'; |
|
278 | - $html[] = ' data-fieldname="' . htmlspecialchars($fieldName) . '"'; |
|
279 | - $html[] = ' data-tablename="' . htmlspecialchars($table) . '"'; |
|
280 | - $html[] = ' data-field="' . htmlspecialchars($elementName) . '"'; |
|
281 | - $html[] = ' data-uid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
282 | - $html[] = ' data-pid="' . htmlspecialchars($this->data['parentPageRow']['uid'] ?? 0) . '"'; |
|
283 | - $html[] = ' data-fieldtype="' . htmlspecialchars($config['type']) . '"'; |
|
284 | - $html[] = ' data-minchars="' . htmlspecialchars((string)$suggestMinimumCharacters) . '"'; |
|
285 | - $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
286 | - $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
287 | - $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
288 | - $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
289 | - $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
290 | - $html[] = '/>'; |
|
291 | - $html[] = '</div>'; |
|
292 | - $html[] = '</div>'; |
|
293 | - $html[] = '</div>'; |
|
270 | + $html[] = '<div class="form-wizards-items-top">'; |
|
271 | + $html[] = '<div class="autocomplete t3-form-suggest-container">'; |
|
272 | + $html[] = '<div class="input-group">'; |
|
273 | + $html[] = '<span class="input-group-addon">'; |
|
274 | + $html[] = $this->iconFactory->getIcon('actions-search', Icon::SIZE_SMALL)->render(); |
|
275 | + $html[] = '</span>'; |
|
276 | + $html[] = '<input type="search" class="t3-form-suggest form-control"'; |
|
277 | + $html[] = ' placeholder="' . $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.findRecord') . '"'; |
|
278 | + $html[] = ' data-fieldname="' . htmlspecialchars($fieldName) . '"'; |
|
279 | + $html[] = ' data-tablename="' . htmlspecialchars($table) . '"'; |
|
280 | + $html[] = ' data-field="' . htmlspecialchars($elementName) . '"'; |
|
281 | + $html[] = ' data-uid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
282 | + $html[] = ' data-pid="' . htmlspecialchars($this->data['parentPageRow']['uid'] ?? 0) . '"'; |
|
283 | + $html[] = ' data-fieldtype="' . htmlspecialchars($config['type']) . '"'; |
|
284 | + $html[] = ' data-minchars="' . htmlspecialchars((string)$suggestMinimumCharacters) . '"'; |
|
285 | + $html[] = ' data-datastructureidentifier="' . htmlspecialchars($dataStructureIdentifier) . '"'; |
|
286 | + $html[] = ' data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
287 | + $html[] = ' data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
288 | + $html[] = ' data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
289 | + $html[] = ' data-flexformcontainerfieldname="' . htmlspecialchars($flexFormContainerFieldName) . '"'; |
|
290 | + $html[] = '/>'; |
|
291 | + $html[] = '</div>'; |
|
292 | + $html[] = '</div>'; |
|
293 | + $html[] = '</div>'; |
|
294 | 294 | } |
295 | - $html[] = '<div class="form-wizards-element">'; |
|
296 | - $html[] = '<input type="hidden" class="t3js-group-hidden-field" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . $itemCanBeSelectedMoreThanOnce . '" />'; |
|
297 | - $html[] = '<select ' . GeneralUtility::implodeAttributes($selectorAttributes, true) . '>'; |
|
298 | - $html[] = implode(LF, $selectorOptionsHtml); |
|
299 | - $html[] = '</select>'; |
|
300 | - $html[] = '</div>'; |
|
301 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
302 | - $html[] = '<div class="btn-group-vertical">'; |
|
303 | - if ($maxItems > 1 && $size >=5 && $showMoveIcons) { |
|
304 | - $html[] = '<a href="#"'; |
|
305 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
306 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
307 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
308 | - $html[] = '>'; |
|
309 | - $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
310 | - $html[] = '</a>'; |
|
295 | + $html[] = '<div class="form-wizards-element">'; |
|
296 | + $html[] = '<input type="hidden" class="t3js-group-hidden-field" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . $itemCanBeSelectedMoreThanOnce . '" />'; |
|
297 | + $html[] = '<select ' . GeneralUtility::implodeAttributes($selectorAttributes, true) . '>'; |
|
298 | + $html[] = implode(LF, $selectorOptionsHtml); |
|
299 | + $html[] = '</select>'; |
|
300 | + $html[] = '</div>'; |
|
301 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
302 | + $html[] = '<div class="btn-group-vertical">'; |
|
303 | + if ($maxItems > 1 && $size >= 5 && $showMoveIcons) { |
|
304 | + $html[] = '<a href="#"'; |
|
305 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
306 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
307 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
308 | + $html[] = '>'; |
|
309 | + $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
310 | + $html[] = '</a>'; |
|
311 | 311 | } |
312 | 312 | if ($maxItems > 1 && $size > 1 && $showMoveIcons) { |
313 | - $html[] = '<a href="#"'; |
|
314 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
315 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
316 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
317 | - $html[] = '>'; |
|
318 | - $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
319 | - $html[] = '</a>'; |
|
320 | - $html[] = '<a href="#"'; |
|
321 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
322 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
323 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
324 | - $html[] = '>'; |
|
325 | - $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
326 | - $html[] = '</a>'; |
|
313 | + $html[] = '<a href="#"'; |
|
314 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
315 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
316 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
317 | + $html[] = '>'; |
|
318 | + $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
319 | + $html[] = '</a>'; |
|
320 | + $html[] = '<a href="#"'; |
|
321 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
322 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
323 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
324 | + $html[] = '>'; |
|
325 | + $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
326 | + $html[] = '</a>'; |
|
327 | 327 | } |
328 | 328 | if ($maxItems > 1 && $size >= 5 && $showMoveIcons) { |
329 | - $html[] = '<a href="#"'; |
|
330 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
331 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
332 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
333 | - $html[] = '>'; |
|
334 | - $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
335 | - $html[] = '</a>'; |
|
329 | + $html[] = '<a href="#"'; |
|
330 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
331 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
332 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
333 | + $html[] = '>'; |
|
334 | + $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
335 | + $html[] = '</a>'; |
|
336 | 336 | } |
337 | 337 | if ($showDeleteControl) { |
338 | - $html[] = '<a href="#"'; |
|
339 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption t3js-revert-unique"'; |
|
340 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
341 | - $html[] = ' data-uid="' . htmlspecialchars($row['uid']) . '"'; |
|
342 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
343 | - $html[] = '>'; |
|
344 | - $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
345 | - $html[] = '</a>'; |
|
338 | + $html[] = '<a href="#"'; |
|
339 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption t3js-revert-unique"'; |
|
340 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
341 | + $html[] = ' data-uid="' . htmlspecialchars($row['uid']) . '"'; |
|
342 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
343 | + $html[] = '>'; |
|
344 | + $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
345 | + $html[] = '</a>'; |
|
346 | 346 | } |
347 | - $html[] = '</div>'; |
|
348 | - $html[] = '</div>'; |
|
349 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
350 | - $html[] = '<div class="btn-group-vertical">'; |
|
351 | - $html[] = $fieldControlHtml; |
|
352 | - $html[] = '</div>'; |
|
353 | - $html[] = '</div>'; |
|
347 | + $html[] = '</div>'; |
|
348 | + $html[] = '</div>'; |
|
349 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
350 | + $html[] = '<div class="btn-group-vertical">'; |
|
351 | + $html[] = $fieldControlHtml; |
|
352 | + $html[] = '</div>'; |
|
353 | + $html[] = '</div>'; |
|
354 | 354 | if (!empty($fieldWizardHtml)) { |
355 | 355 | $html[] = '<div class="form-wizards-items-bottom">'; |
356 | 356 | $html[] = $fieldWizardHtml; |
357 | 357 | $html[] = '</div>'; |
358 | 358 | } |
359 | - $html[] = '</div>'; |
|
360 | - $html[] = '<input type="hidden"'; |
|
361 | - $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
362 | - $html[] = ' name="' . htmlspecialchars($elementName) . '"'; |
|
363 | - $html[] = ' value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '"'; |
|
364 | - $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
365 | - $html[] = ' />'; |
|
359 | + $html[] = '</div>'; |
|
360 | + $html[] = '<input type="hidden"'; |
|
361 | + $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
362 | + $html[] = ' name="' . htmlspecialchars($elementName) . '"'; |
|
363 | + $html[] = ' value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '"'; |
|
364 | + $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
365 | + $html[] = ' />'; |
|
366 | 366 | $html[] = '</div>'; |
367 | 367 | |
368 | 368 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/GroupElement' => ' |
@@ -99,83 +99,83 @@ |
||
99 | 99 | $json = (string)json_encode($this->rows, JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS); |
100 | 100 | $html = []; |
101 | 101 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
102 | - $html[] = $fieldInformationHtml; |
|
103 | - $html[] = '<div class="form-control-wrap">'; |
|
104 | - $html[] = '<div class="form-wizards-wrap">'; |
|
105 | - $html[] = '<div class="form-wizards-element">'; |
|
106 | - $html[] = '<input'; |
|
107 | - $html[] = ' type="hidden"'; |
|
108 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
109 | - $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
110 | - $html[] = '/>'; |
|
111 | - $html[] = '<table class="grideditor table table-bordered">'; |
|
112 | - $html[] = '<tr>'; |
|
113 | - $html[] = '<td colspan="2" align="center">'; |
|
114 | - $html[] = '<div class="btn-group">'; |
|
115 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-top" href="#"'; |
|
116 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
117 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
118 | - $html[] = '</a>'; |
|
119 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
120 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
121 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
122 | - $html[] = '</a>'; |
|
123 | - $html[] = '</div>'; |
|
124 | - $html[] = '</td>'; |
|
125 | - $html[] = '</tr>'; |
|
126 | - $html[] = '<tr>'; |
|
127 | - $html[] = '<td class="editor_cell">'; |
|
128 | - $html[] = '<div'; |
|
129 | - $html[] = ' id="editor"'; |
|
130 | - $html[] = ' class="t3js-grideditor"'; |
|
131 | - $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
132 | - $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
133 | - $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
134 | - $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
135 | - $html[] = '>'; |
|
136 | - $html[] = '</div>'; |
|
137 | - $html[] = '</td>'; |
|
138 | - $html[] = '<td>'; |
|
139 | - $html[] = '<div class="btn-group-vertical">'; |
|
140 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
141 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
142 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
143 | - $html[] = '</a>'; |
|
144 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
145 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
146 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
147 | - $html[] = '</a>'; |
|
148 | - $html[] = '</div>'; |
|
149 | - $html[] = '</td>'; |
|
150 | - $html[] = '</tr>'; |
|
151 | - $html[] = '<tr>'; |
|
152 | - $html[] = '<td colspan="2" align="center">'; |
|
153 | - $html[] = '<div class="btn-group">'; |
|
154 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
155 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
156 | - $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
157 | - $html[] = '</a>'; |
|
158 | - $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
159 | - $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
160 | - $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
161 | - $html[] = '</a>'; |
|
162 | - $html[] = '</div>'; |
|
163 | - $html[] = '</td>'; |
|
164 | - $html[] = '</tr>'; |
|
165 | - $html[] = '<tr>'; |
|
166 | - $html[] = '<td colspan="2">'; |
|
167 | - $html[] = $editor; |
|
168 | - $html[] = '</td>'; |
|
169 | - $html[] = '</tr>'; |
|
170 | - $html[] = '</table>'; |
|
171 | - $html[] = '</div>'; |
|
102 | + $html[] = $fieldInformationHtml; |
|
103 | + $html[] = '<div class="form-control-wrap">'; |
|
104 | + $html[] = '<div class="form-wizards-wrap">'; |
|
105 | + $html[] = '<div class="form-wizards-element">'; |
|
106 | + $html[] = '<input'; |
|
107 | + $html[] = ' type="hidden"'; |
|
108 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
109 | + $html[] = ' value="' . htmlspecialchars($this->data['parameterArray']['itemFormElValue']) . '"'; |
|
110 | + $html[] = '/>'; |
|
111 | + $html[] = '<table class="grideditor table table-bordered">'; |
|
112 | + $html[] = '<tr>'; |
|
113 | + $html[] = '<td colspan="2" align="center">'; |
|
114 | + $html[] = '<div class="btn-group">'; |
|
115 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-top" href="#"'; |
|
116 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
117 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
118 | + $html[] = '</a>'; |
|
119 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-top" href="#"'; |
|
120 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
121 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
122 | + $html[] = '</a>'; |
|
123 | + $html[] = '</div>'; |
|
124 | + $html[] = '</td>'; |
|
125 | + $html[] = '</tr>'; |
|
126 | + $html[] = '<tr>'; |
|
127 | + $html[] = '<td class="editor_cell">'; |
|
128 | + $html[] = '<div'; |
|
129 | + $html[] = ' id="editor"'; |
|
130 | + $html[] = ' class="t3js-grideditor"'; |
|
131 | + $html[] = ' data-data="' . htmlspecialchars($json) . '"'; |
|
132 | + $html[] = ' data-rowcount="' . (int)$this->rowCount . '"'; |
|
133 | + $html[] = ' data-colcount="' . (int)$this->colCount . '"'; |
|
134 | + $html[] = ' data-field="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
135 | + $html[] = '>'; |
|
136 | + $html[] = '</div>'; |
|
137 | + $html[] = '</td>'; |
|
138 | + $html[] = '<td>'; |
|
139 | + $html[] = '<div class="btn-group-vertical">'; |
|
140 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addcolumn" href="#"'; |
|
141 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addColumn')) . '">'; |
|
142 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
143 | + $html[] = '</a>'; |
|
144 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removecolumn" href="#"'; |
|
145 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeColumn')) . '">'; |
|
146 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
147 | + $html[] = '</a>'; |
|
148 | + $html[] = '</div>'; |
|
149 | + $html[] = '</td>'; |
|
150 | + $html[] = '</tr>'; |
|
151 | + $html[] = '<tr>'; |
|
152 | + $html[] = '<td colspan="2" align="center">'; |
|
153 | + $html[] = '<div class="btn-group">'; |
|
154 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-addrow-bottom" href="#"'; |
|
155 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_addRow')) . '">'; |
|
156 | + $html[] = '<i class="fa fa-fw fa-plus"></i>'; |
|
157 | + $html[] = '</a>'; |
|
158 | + $html[] = '<a class="btn btn-default btn-sm t3js-grideditor-removerow-bottom" href="#"'; |
|
159 | + $html[] = ' title="' . htmlspecialchars($lang->getLL('grid_removeRow')) . '">'; |
|
160 | + $html[] = '<i class="fa fa-fw fa-minus"></i>'; |
|
161 | + $html[] = '</a>'; |
|
162 | + $html[] = '</div>'; |
|
163 | + $html[] = '</td>'; |
|
164 | + $html[] = '</tr>'; |
|
165 | + $html[] = '<tr>'; |
|
166 | + $html[] = '<td colspan="2">'; |
|
167 | + $html[] = $editor; |
|
168 | + $html[] = '</td>'; |
|
169 | + $html[] = '</tr>'; |
|
170 | + $html[] = '</table>'; |
|
171 | + $html[] = '</div>'; |
|
172 | 172 | if (!empty($fieldWizardHtml)) { |
173 | 173 | $html[] = '<div class="form-wizards-items-bottom">'; |
174 | 174 | $html[] = $fieldWizardHtml; |
175 | 175 | $html[] = '</div>'; |
176 | 176 | } |
177 | - $html[] = '</div>'; |
|
178 | - $html[] = '</div>'; |
|
177 | + $html[] = '</div>'; |
|
178 | + $html[] = '</div>'; |
|
179 | 179 | $html[] = '</div>'; |
180 | 180 | |
181 | 181 | $html = implode(LF, $html); |
@@ -946,7 +946,7 @@ discard block |
||
946 | 946 | } |
947 | 947 | |
948 | 948 | $tagAttributes = array_map( |
949 | - function ($attributeValue) { |
|
949 | + function($attributeValue) { |
|
950 | 950 | if (is_array($attributeValue)) { |
951 | 951 | return implode(' ', $attributeValue); |
952 | 952 | } |
@@ -1291,7 +1291,7 @@ discard block |
||
1291 | 1291 | 'currentUrl' => $this->listURL('', $table, 'pointer'), |
1292 | 1292 | 'currentPage' => $currentPage, |
1293 | 1293 | 'totalPages' => $totalPages, |
1294 | - 'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1), |
|
1294 | + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), |
|
1295 | 1295 | 'lastElement' => $lastElementNumber, |
1296 | 1296 | 'colspan' => $paginationColumns |
1297 | 1297 | ]) |
@@ -1473,7 +1473,7 @@ discard block |
||
1473 | 1473 | $params = [ |
1474 | 1474 | 'edit' => [ |
1475 | 1475 | $table => [ |
1476 | - (0-(($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
1476 | + (0 - (($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
1477 | 1477 | ] |
1478 | 1478 | ], |
1479 | 1479 | 'returnUrl' => $this->listURL() |
@@ -1864,8 +1864,8 @@ discard block |
||
1864 | 1864 | $possibleTranslations = $this->possibleTranslations; |
1865 | 1865 | if ($table === 'pages') { |
1866 | 1866 | // Calculate possible translations for pages |
1867 | - $possibleTranslations = array_map(static fn ($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
1868 | - $possibleTranslations = array_filter($possibleTranslations, static fn ($languageUid) => $languageUid > 0); |
|
1867 | + $possibleTranslations = array_map(static fn($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
1868 | + $possibleTranslations = array_filter($possibleTranslations, static fn($languageUid) => $languageUid > 0); |
|
1869 | 1869 | } |
1870 | 1870 | |
1871 | 1871 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |
@@ -1980,7 +1980,7 @@ discard block |
||
1980 | 1980 | } |
1981 | 1981 | |
1982 | 1982 | // Sort disabled fields to top |
1983 | - usort($checkboxes, function ($a, $b) { |
|
1983 | + usort($checkboxes, function($a, $b) { |
|
1984 | 1984 | return $b['disabled'] - $a['disabled']; |
1985 | 1985 | }); |
1986 | 1986 |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | // Processing related GET / POST vars |
524 | 524 | $this->data = $parsedBody['data'] ?? []; |
525 | 525 | $this->cmd = $parsedBody['cmd'] ?? []; |
526 | - $this->mirror = $parsedBody['mirror'] ?? []; |
|
526 | + $this->mirror = $parsedBody['mirror'] ?? []; |
|
527 | 527 | $this->returnNewPageId = (bool)($parsedBody['returnNewPageId'] ?? false); |
528 | 528 | |
529 | 529 | // Only options related to $this->data submission are included here |
@@ -2403,7 +2403,7 @@ discard block |
||
2403 | 2403 | $queryParams = $request->getQueryParams(); |
2404 | 2404 | $parsedBody = $request->getParsedBody(); |
2405 | 2405 | |
2406 | - foreach (['edit', 'defVals', 'overrideVals' , 'columnsOnly' , 'noView'] as $key) { |
|
2406 | + foreach (['edit', 'defVals', 'overrideVals', 'columnsOnly', 'noView'] as $key) { |
|
2407 | 2407 | if (isset($this->R_URL_getvars[$key])) { |
2408 | 2408 | $this->storeArray[$key] = $this->R_URL_getvars[$key]; |
2409 | 2409 | } else { |
@@ -360,7 +360,7 @@ |
||
360 | 360 | |
361 | 361 | protected function extensionsWithUpdate(array $availableAndInstalledExtensions): array |
362 | 362 | { |
363 | - return array_filter($availableAndInstalledExtensions, static function ($extension) { |
|
363 | + return array_filter($availableAndInstalledExtensions, static function($extension) { |
|
364 | 364 | return $extension['updateAvailable'] ?? false; |
365 | 365 | }); |
366 | 366 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | protected function resetConstraintsOnMemoryExhaustionError() |
167 | 167 | { |
168 | 168 | $reservedMemory = new \SplFixedArray(187500); // 3M |
169 | - register_shutdown_function(function () use (&$reservedMemory): void { |
|
169 | + register_shutdown_function(function() use (&$reservedMemory): void { |
|
170 | 170 | $reservedMemory = null; // free the reserved memory |
171 | 171 | $error = error_get_last(); |
172 | 172 | if (strpos($error['message'] ?? '', 'Allowed memory size of') !== false) { |
@@ -136,14 +136,14 @@ discard block |
||
136 | 136 | { |
137 | 137 | $configuration = $this->getConfigurationForLogger(self::CONFIGURATION_TYPE_WRITER, $logger->getName()); |
138 | 138 | foreach ($configuration as $severityLevel => $writer) { |
139 | - $writer = array_filter($writer, static fn (array $options) => !($options['disabled'] ?? false)); |
|
139 | + $writer = array_filter($writer, static fn(array $options) => !($options['disabled'] ?? false)); |
|
140 | 140 | foreach ($writer as $logWriterClassName => $logWriterOptions) { |
141 | 141 | try { |
142 | 142 | unset($logWriterOptions['disabled']); |
143 | 143 | /** @var \TYPO3\CMS\Core\Log\Writer\WriterInterface $logWriter */ |
144 | 144 | $logWriter = GeneralUtility::makeInstance($logWriterClassName, $logWriterOptions); |
145 | 145 | $logger->addWriter($severityLevel, $logWriter); |
146 | - } catch (InvalidArgumentException|InvalidLogWriterConfigurationException $e) { |
|
146 | + } catch (InvalidArgumentException | InvalidLogWriterConfigurationException $e) { |
|
147 | 147 | $logger->warning('Instantiation of LogWriter "{class_name}" failed for logger {name}', [ |
148 | 148 | 'class_name' => $logWriterClassName, |
149 | 149 | 'name' => $logger->getName(), |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | /** @var \TYPO3\CMS\Core\Log\Processor\ProcessorInterface $logProcessor */ |
169 | 169 | $logProcessor = GeneralUtility::makeInstance($logProcessorClassName, $logProcessorOptions); |
170 | 170 | $logger->addProcessor($severityLevel, $logProcessor); |
171 | - } catch (InvalidArgumentException|InvalidLogProcessorConfigurationException $e) { |
|
171 | + } catch (InvalidArgumentException | InvalidLogProcessorConfigurationException $e) { |
|
172 | 172 | $logger->warning('Instantiation of LogProcessor "{class_name}" failed for logger {name}', [ |
173 | 173 | 'class_name' => $logProcessorClassName, |
174 | 174 | 'name' => $logger->getName(), |