@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | 'listModule' => [ |
58 | 58 | 'renderType' => 'listModule', |
59 | 59 | 'disabled' => true, |
60 | - 'after' => [ 'addRecord' ], |
|
60 | + 'after' => ['addRecord'], |
|
61 | 61 | ], |
62 | 62 | ]; |
63 | 63 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | protected function renderFieldControl(): array |
93 | 93 | { |
94 | - $alternativeResult = [ |
|
94 | + $alternativeResult = [ |
|
95 | 95 | 'additionalJavaScriptPost' => [], |
96 | 96 | 'additionalHiddenFields' => [], |
97 | 97 | 'additionalInlineLanguageLabelFiles' => [], |
@@ -184,10 +184,10 @@ discard block |
||
184 | 184 | |
185 | 185 | // Html stuff for filter and select filter on top of right side of multi select boxes |
186 | 186 | $filterTextfield[] = '<span class="input-group input-group-sm">'; |
187 | - $filterTextfield[] = '<span class="input-group-addon">'; |
|
188 | - $filterTextfield[] = '<span class="fa fa-filter"></span>'; |
|
189 | - $filterTextfield[] = '</span>'; |
|
190 | - $filterTextfield[] = '<input class="t3js-formengine-multiselect-filter-textfield form-control" value="">'; |
|
187 | + $filterTextfield[] = '<span class="input-group-addon">'; |
|
188 | + $filterTextfield[] = '<span class="fa fa-filter"></span>'; |
|
189 | + $filterTextfield[] = '</span>'; |
|
190 | + $filterTextfield[] = '<input class="t3js-formengine-multiselect-filter-textfield form-control" value="">'; |
|
191 | 191 | $filterTextfield[] = '</span>'; |
192 | 192 | |
193 | 193 | $filterDropDownOptions = []; |
@@ -205,14 +205,14 @@ discard block |
||
205 | 205 | $filterHtml[] = '<div class="form-multigroup-item-wizard">'; |
206 | 206 | if (!empty($filterDropDownOptions)) { |
207 | 207 | $filterHtml[] = '<div class="t3js-formengine-multiselect-filter-container form-multigroup-wrap">'; |
208 | - $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
209 | - $filterHtml[] = '<select class="form-control input-sm t3js-formengine-multiselect-filter-dropdown">'; |
|
210 | - $filterHtml[] = implode(LF, $filterDropDownOptions); |
|
211 | - $filterHtml[] = '</select>'; |
|
212 | - $filterHtml[] = '</div>'; |
|
213 | - $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
214 | - $filterHtml[] = implode(LF, $filterTextfield); |
|
215 | - $filterHtml[] = '</div>'; |
|
208 | + $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
209 | + $filterHtml[] = '<select class="form-control input-sm t3js-formengine-multiselect-filter-dropdown">'; |
|
210 | + $filterHtml[] = implode(LF, $filterDropDownOptions); |
|
211 | + $filterHtml[] = '</select>'; |
|
212 | + $filterHtml[] = '</div>'; |
|
213 | + $filterHtml[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
214 | + $filterHtml[] = implode(LF, $filterTextfield); |
|
215 | + $filterHtml[] = '</div>'; |
|
216 | 216 | $filterHtml[] = '</div>'; |
217 | 217 | } else { |
218 | 218 | $filterHtml[] = implode(LF, $filterTextfield); |
@@ -249,113 +249,113 @@ discard block |
||
249 | 249 | |
250 | 250 | $html = []; |
251 | 251 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
252 | - $html[] = $fieldInformationHtml; |
|
253 | - $html[] = '<div class="form-wizards-wrap">'; |
|
254 | - $html[] = '<div class="form-wizards-element">'; |
|
255 | - $html[] = '<input type="hidden" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . (int)$itemCanBeSelectedMoreThanOnce . '" />'; |
|
256 | - $html[] = '<div class="form-multigroup-wrap t3js-formengine-field-group">'; |
|
257 | - $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
258 | - $html[] = '<label>'; |
|
259 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
260 | - $html[] = '</label>'; |
|
261 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
262 | - $html[] = '<div class="form-wizards-element">'; |
|
263 | - $html[] = '<select'; |
|
264 | - $html[] = ' id="' . $selectedOptionsFieldId . '"'; |
|
265 | - $html[] = ' size="' . $size . '"'; |
|
266 | - $html[] = ' class="' . implode(' ', $classes) . '"'; |
|
267 | - $html[] = $multipleAttribute; |
|
268 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
269 | - $html[] = '>'; |
|
270 | - $html[] = implode(LF, $selectedItemsHtml); |
|
271 | - $html[] = '</select>'; |
|
272 | - $html[] = '</div>'; |
|
273 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
274 | - $html[] = '<div class="btn-group-vertical">'; |
|
252 | + $html[] = $fieldInformationHtml; |
|
253 | + $html[] = '<div class="form-wizards-wrap">'; |
|
254 | + $html[] = '<div class="form-wizards-element">'; |
|
255 | + $html[] = '<input type="hidden" data-formengine-input-name="' . htmlspecialchars($elementName) . '" value="' . (int)$itemCanBeSelectedMoreThanOnce . '" />'; |
|
256 | + $html[] = '<div class="form-multigroup-wrap t3js-formengine-field-group">'; |
|
257 | + $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
258 | + $html[] = '<label>'; |
|
259 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
260 | + $html[] = '</label>'; |
|
261 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
262 | + $html[] = '<div class="form-wizards-element">'; |
|
263 | + $html[] = '<select'; |
|
264 | + $html[] = ' id="' . $selectedOptionsFieldId . '"'; |
|
265 | + $html[] = ' size="' . $size . '"'; |
|
266 | + $html[] = ' class="' . implode(' ', $classes) . '"'; |
|
267 | + $html[] = $multipleAttribute; |
|
268 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
269 | + $html[] = '>'; |
|
270 | + $html[] = implode(LF, $selectedItemsHtml); |
|
271 | + $html[] = '</select>'; |
|
272 | + $html[] = '</div>'; |
|
273 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
274 | + $html[] = '<div class="btn-group-vertical">'; |
|
275 | 275 | if ($maxItems > 1 && $size >= 5) { |
276 | - $html[] = '<a href="#"'; |
|
277 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
278 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
279 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
280 | - $html[] = '>'; |
|
281 | - $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
282 | - $html[] = '</a>'; |
|
276 | + $html[] = '<a href="#"'; |
|
277 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-top"'; |
|
278 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
279 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_top')) . '"'; |
|
280 | + $html[] = '>'; |
|
281 | + $html[] = $this->iconFactory->getIcon('actions-move-to-top', Icon::SIZE_SMALL)->render(); |
|
282 | + $html[] = '</a>'; |
|
283 | 283 | } |
284 | 284 | if ($maxItems > 1) { |
285 | - $html[] = '<a href="#"'; |
|
286 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
287 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
288 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
289 | - $html[] = '>'; |
|
290 | - $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
291 | - $html[] = '</a>'; |
|
292 | - $html[] = '<a href="#"'; |
|
293 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
294 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
295 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
296 | - $html[] = '>'; |
|
297 | - $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
298 | - $html[] = '</a>'; |
|
285 | + $html[] = '<a href="#"'; |
|
286 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-up"'; |
|
287 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
288 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_up')) . '"'; |
|
289 | + $html[] = '>'; |
|
290 | + $html[] = $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render(); |
|
291 | + $html[] = '</a>'; |
|
292 | + $html[] = '<a href="#"'; |
|
293 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-down"'; |
|
294 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
295 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_down')) . '"'; |
|
296 | + $html[] = '>'; |
|
297 | + $html[] = $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render(); |
|
298 | + $html[] = '</a>'; |
|
299 | 299 | } |
300 | 300 | if ($maxItems > 1 && $size >= 5) { |
301 | - $html[] = '<a href="#"'; |
|
302 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
303 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
304 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
305 | - $html[] = '>'; |
|
306 | - $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
307 | - $html[] = '</a>'; |
|
301 | + $html[] = '<a href="#"'; |
|
302 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-moveoption-bottom"'; |
|
303 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
304 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.move_to_bottom')) . '"'; |
|
305 | + $html[] = '>'; |
|
306 | + $html[] = $this->iconFactory->getIcon('actions-move-to-bottom', Icon::SIZE_SMALL)->render(); |
|
307 | + $html[] = '</a>'; |
|
308 | 308 | } |
309 | - $html[] = $alternativeFieldControlHtml; |
|
310 | - $html[] = '<a href="#"'; |
|
311 | - $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption"'; |
|
312 | - $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
313 | - $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
314 | - $html[] = '>'; |
|
315 | - $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
316 | - $html[] = '</a>'; |
|
317 | - $html[] = '</div>'; |
|
318 | - $html[] = '</div>'; |
|
319 | - $html[] = '</div>'; |
|
320 | - $html[] = '</div>'; |
|
321 | - $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
322 | - $html[] = '<label>'; |
|
323 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.items')); |
|
324 | - $html[] = '</label>'; |
|
325 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
326 | - $html[] = '<div class="form-wizards-element">'; |
|
327 | - $html[] = implode(LF, $filterHtml); |
|
328 | - $html[] = '<select'; |
|
329 | - $html[] = ' data-relatedfieldname="' . htmlspecialchars($elementName) . '"'; |
|
330 | - $html[] = ' data-exclusivevalues="' . htmlspecialchars($config['exclusiveKeys']) . '"'; |
|
331 | - $html[] = ' id="' . $availableOptionsFieldId . '"'; |
|
332 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
333 | - $html[] = ' class="form-control t3js-formengine-select-itemstoselect"'; |
|
334 | - $html[] = ' size="' . $size . '"'; |
|
335 | - $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
336 | - $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
337 | - $html[] = '>'; |
|
338 | - $html[] = implode(LF, $selectableItemsHtml); |
|
339 | - $html[] = '</select>'; |
|
340 | - $html[] = '</div>'; |
|
309 | + $html[] = $alternativeFieldControlHtml; |
|
310 | + $html[] = '<a href="#"'; |
|
311 | + $html[] = ' class="btn btn-default t3js-btn-option t3js-btn-removeoption"'; |
|
312 | + $html[] = ' data-fieldname="' . htmlspecialchars($elementName) . '"'; |
|
313 | + $html[] = ' title="' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.remove_selected')) . '"'; |
|
314 | + $html[] = '>'; |
|
315 | + $html[] = $this->iconFactory->getIcon('actions-selection-delete', Icon::SIZE_SMALL)->render(); |
|
316 | + $html[] = '</a>'; |
|
317 | + $html[] = '</div>'; |
|
318 | + $html[] = '</div>'; |
|
319 | + $html[] = '</div>'; |
|
320 | + $html[] = '</div>'; |
|
321 | + $html[] = '<div class="form-multigroup-item form-multigroup-element">'; |
|
322 | + $html[] = '<label>'; |
|
323 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.items')); |
|
324 | + $html[] = '</label>'; |
|
325 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
326 | + $html[] = '<div class="form-wizards-element">'; |
|
327 | + $html[] = implode(LF, $filterHtml); |
|
328 | + $html[] = '<select'; |
|
329 | + $html[] = ' data-relatedfieldname="' . htmlspecialchars($elementName) . '"'; |
|
330 | + $html[] = ' data-exclusivevalues="' . htmlspecialchars($config['exclusiveKeys']) . '"'; |
|
331 | + $html[] = ' id="' . $availableOptionsFieldId . '"'; |
|
332 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($elementName) . '"'; |
|
333 | + $html[] = ' class="form-control t3js-formengine-select-itemstoselect"'; |
|
334 | + $html[] = ' size="' . $size . '"'; |
|
335 | + $html[] = ' onchange="' . htmlspecialchars(implode('', $parameterArray['fieldChangeFunc'])) . '"'; |
|
336 | + $html[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
337 | + $html[] = '>'; |
|
338 | + $html[] = implode(LF, $selectableItemsHtml); |
|
339 | + $html[] = '</select>'; |
|
340 | + $html[] = '</div>'; |
|
341 | 341 | if (!empty($fieldControlHtml)) { |
342 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
343 | - $html[] = '<div class="btn-group-vertical">'; |
|
344 | - $html[] = $fieldControlHtml; |
|
345 | - $html[] = '</div>'; |
|
346 | - $html[] = '</div>'; |
|
342 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
343 | + $html[] = '<div class="btn-group-vertical">'; |
|
344 | + $html[] = $fieldControlHtml; |
|
345 | + $html[] = '</div>'; |
|
346 | + $html[] = '</div>'; |
|
347 | 347 | } |
348 | - $html[] = '</div>'; |
|
349 | - $html[] = '</div>'; |
|
350 | - $html[] = '</div>'; |
|
351 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
352 | - $html[] = '</div>'; |
|
348 | + $html[] = '</div>'; |
|
349 | + $html[] = '</div>'; |
|
350 | + $html[] = '</div>'; |
|
351 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($elementName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
352 | + $html[] = '</div>'; |
|
353 | 353 | if (!empty($fieldWizardHtml)) { |
354 | 354 | $html[] = '<div class="form-wizards-items-bottom">'; |
355 | 355 | $html[] = $fieldWizardHtml; |
356 | 356 | $html[] = '</div>'; |
357 | 357 | } |
358 | - $html[] = '</div>'; |
|
358 | + $html[] = '</div>'; |
|
359 | 359 | $html[] = '</div>'; |
360 | 360 | |
361 | 361 | $resultArray['requireJsModules'][] = ['TYPO3/CMS/Backend/FormEngine/Element/SelectMultipleSideBySideElement' => ' |
@@ -422,29 +422,29 @@ discard block |
||
422 | 422 | |
423 | 423 | $html = []; |
424 | 424 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
425 | - $html[] = $fieldInformationHtml; |
|
426 | - $html[] = '<div class="form-wizards-wrap">'; |
|
427 | - $html[] = '<div class="form-wizards-element">'; |
|
428 | - $html[] = '<label>'; |
|
429 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
430 | - $html[] = '</label>'; |
|
431 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
432 | - $html[] = '<div class="form-wizards-element">'; |
|
433 | - $html[] = '<select'; |
|
434 | - $html[] = ' id="' . StringUtility::getUniqueId('tceforms-multiselect-') . '"'; |
|
435 | - $html[] = ' size="' . $size . '"'; |
|
436 | - $html[] = ' class="form-control tceforms-multiselect"'; |
|
437 | - $html[] = $multiple; |
|
438 | - $html[] = ' data-formengine-input-name="' . htmlspecialchars($fieldName) . '"'; |
|
439 | - $html[] = ' disabled="disabled">'; |
|
440 | - $html[] = '/>'; |
|
441 | - $html[] = implode(LF, $optionsHtml); |
|
442 | - $html[] = '</select>'; |
|
443 | - $html[] = '</div>'; |
|
444 | - $html[] = '</div>'; |
|
445 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($fieldName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
446 | - $html[] = '</div>'; |
|
447 | - $html[] = '</div>'; |
|
425 | + $html[] = $fieldInformationHtml; |
|
426 | + $html[] = '<div class="form-wizards-wrap">'; |
|
427 | + $html[] = '<div class="form-wizards-element">'; |
|
428 | + $html[] = '<label>'; |
|
429 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.selected')); |
|
430 | + $html[] = '</label>'; |
|
431 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
432 | + $html[] = '<div class="form-wizards-element">'; |
|
433 | + $html[] = '<select'; |
|
434 | + $html[] = ' id="' . StringUtility::getUniqueId('tceforms-multiselect-') . '"'; |
|
435 | + $html[] = ' size="' . $size . '"'; |
|
436 | + $html[] = ' class="form-control tceforms-multiselect"'; |
|
437 | + $html[] = $multiple; |
|
438 | + $html[] = ' data-formengine-input-name="' . htmlspecialchars($fieldName) . '"'; |
|
439 | + $html[] = ' disabled="disabled">'; |
|
440 | + $html[] = '/>'; |
|
441 | + $html[] = implode(LF, $optionsHtml); |
|
442 | + $html[] = '</select>'; |
|
443 | + $html[] = '</div>'; |
|
444 | + $html[] = '</div>'; |
|
445 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($fieldName) . '" value="' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '" />'; |
|
446 | + $html[] = '</div>'; |
|
447 | + $html[] = '</div>'; |
|
448 | 448 | $html[] = '</div>'; |
449 | 449 | |
450 | 450 | $resultArray['html'] = implode(LF, $html); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'active' => extension_loaded('Zend OPcache') && ini_get('opcache.enable') === '1', |
36 | 36 | 'version' => phpversion('Zend OPcache'), |
37 | 37 | 'warning' => self::isClearable() ? false : 'Either opcache_invalidate or opcache_reset are disabled in this installation. Clearing will not work.', |
38 | - 'clearCallback' => static function ($fileAbsPath) { |
|
38 | + 'clearCallback' => static function($fileAbsPath) { |
|
39 | 39 | if (self::isClearable()) { |
40 | 40 | if ($fileAbsPath !== null) { |
41 | 41 | opcache_invalidate($fileAbsPath); |
@@ -1142,7 +1142,7 @@ discard block |
||
1142 | 1142 | { |
1143 | 1143 | return array_filter( |
1144 | 1144 | $items, |
1145 | - function (DataMapItem $item) use ($type) { |
|
1145 | + function(DataMapItem $item) use ($type) { |
|
1146 | 1146 | return $item->getType() === $type; |
1147 | 1147 | } |
1148 | 1148 | ); |
@@ -1158,7 +1158,7 @@ discard block |
||
1158 | 1158 | { |
1159 | 1159 | $ids = array_filter( |
1160 | 1160 | $ids, |
1161 | - function ($id) { |
|
1161 | + function($id) { |
|
1162 | 1162 | return MathUtility::canBeInterpretedAsInteger($id); |
1163 | 1163 | } |
1164 | 1164 | ); |
@@ -1176,7 +1176,7 @@ discard block |
||
1176 | 1176 | { |
1177 | 1177 | return array_filter( |
1178 | 1178 | $ids, |
1179 | - function ($id) use ($tableName) { |
|
1179 | + function($id) use ($tableName) { |
|
1180 | 1180 | return $this->findItem($tableName, $id) === null; |
1181 | 1181 | } |
1182 | 1182 | ); |
@@ -1191,7 +1191,7 @@ discard block |
||
1191 | 1191 | protected function mapRelationItemId(array $relationItems) |
1192 | 1192 | { |
1193 | 1193 | return array_map( |
1194 | - function (array $relationItem) { |
|
1194 | + function(array $relationItem) { |
|
1195 | 1195 | return (int)$relationItem['id']; |
1196 | 1196 | }, |
1197 | 1197 | $relationItems |
@@ -195,7 +195,7 @@ |
||
195 | 195 | $sheetData = []; |
196 | 196 | $sheetData['data'] = array_filter( |
197 | 197 | $flexForm['data'] ?? [], |
198 | - function ($key) use ($sheetIdentifier) { |
|
198 | + function($key) use ($sheetIdentifier) { |
|
199 | 199 | return $key === $sheetIdentifier; |
200 | 200 | }, |
201 | 201 | ARRAY_FILTER_USE_KEY |
@@ -350,7 +350,7 @@ |
||
350 | 350 | |
351 | 351 | $availableFormDefinitions = []; |
352 | 352 | foreach ($this->formPersistenceManager->listForms() as $formDefinition) { |
353 | - $referenceCount = 0; |
|
353 | + $referenceCount = 0; |
|
354 | 354 | if ( |
355 | 355 | isset($formDefinition['fileUid']) |
356 | 356 | && array_key_exists($formDefinition['fileUid'], $allReferencesForFileUid) |
@@ -184,7 +184,7 @@ |
||
184 | 184 | ); |
185 | 185 | } |
186 | 186 | } |
187 | - } catch (NoSuchFileException|ParseErrorException $e) { |
|
187 | + } catch (NoSuchFileException | ParseErrorException $e) { |
|
188 | 188 | $dataStructure = $this->addSelectedPersistenceIdentifier($identifier['ext-form-persistenceIdentifier'], $dataStructure); |
189 | 189 | $this->addInvalidFrameworkConfigurationFlashMessage($e); |
190 | 190 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * @param ArrayProcessing[] $processings |
45 | 45 | * @return array |
46 | 46 | */ |
47 | - public function forEach(...$processings): array |
|
47 | + public function forEach (...$processings): array |
|
48 | 48 | { |
49 | 49 | $result = []; |
50 | 50 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | ArrayProcessing::class, |
106 | 106 | 'selectablePrototypeNames', |
107 | 107 | '^([\d]+)\.identifier$', |
108 | - function ($_, $value) { |
|
108 | + function($_, $value) { |
|
109 | 109 | return $value; |
110 | 110 | } |
111 | 111 | ) |
@@ -307,7 +307,7 @@ |
||
307 | 307 | // * mixed cases of the above |
308 | 308 | return preg_replace_callback( |
309 | 309 | '/{([^}]+)}/', |
310 | - function ($matches) use ($formRuntime) { |
|
310 | + function($matches) use ($formRuntime) { |
|
311 | 311 | $value = $this->resolveRuntimeReference( |
312 | 312 | $matches[1], |
313 | 313 | $formRuntime |