@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | return ArrayUtility::keepItemsInArray( |
404 | 404 | $items, |
405 | 405 | $result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'], |
406 | - function ($value) { |
|
406 | + function($value) { |
|
407 | 407 | return $value[1]; |
408 | 408 | } |
409 | 409 | ); |
@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | } |
552 | 552 | |
553 | 553 | $allowedStorageIds = array_map( |
554 | - function (ResourceStorage $storage) { |
|
554 | + function(ResourceStorage $storage) { |
|
555 | 555 | return $storage->getUid(); |
556 | 556 | }, |
557 | 557 | $this->getBackendUser()->getFileStorages() |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | |
560 | 560 | return array_filter( |
561 | 561 | $items, |
562 | - function (array $item) use ($allowedStorageIds) { |
|
562 | + function(array $item) use ($allowedStorageIds) { |
|
563 | 563 | $itemValue = $item[1] ?? null; |
564 | 564 | return empty($itemValue) |
565 | 565 | || in_array((int)$itemValue, $allowedStorageIds, true); |
@@ -328,7 +328,7 @@ |
||
328 | 328 | } |
329 | 329 | // Sort fields by the translated value |
330 | 330 | if (!empty($excludeFieldGroup)) { |
331 | - usort($excludeFieldGroup, static function (array $array1, array $array2) { |
|
331 | + usort($excludeFieldGroup, static function(array $array1, array $array2) { |
|
332 | 332 | $array1 = reset($array1); |
333 | 333 | $array2 = reset($array2); |
334 | 334 | if (is_string($array1) && is_string($array2)) { |
@@ -38,8 +38,8 @@ |
||
38 | 38 | public function getFactories(): array |
39 | 39 | { |
40 | 40 | return [ |
41 | - Controller\ConfigurationController::class => [ static::class, 'getConfigurationController' ], |
|
42 | - Controller\DatabaseIntegrityController::class => [ static::class, 'getDatabaseIntegrityController' ], |
|
41 | + Controller\ConfigurationController::class => [static::class, 'getConfigurationController'], |
|
42 | + Controller\DatabaseIntegrityController::class => [static::class, 'getDatabaseIntegrityController'], |
|
43 | 43 | ]; |
44 | 44 | } |
45 | 45 |
@@ -139,7 +139,7 @@ |
||
139 | 139 | } |
140 | 140 | if ($request->getQueryParams()['alternativeEntryPoints'] ?? false) { |
141 | 141 | $this->alternativeEntryPoints = $request->getQueryParams()['alternativeEntryPoints']; |
142 | - $this->alternativeEntryPoints = array_filter($this->alternativeEntryPoints, function ($pageId) { |
|
142 | + $this->alternativeEntryPoints = array_filter($this->alternativeEntryPoints, function($pageId) { |
|
143 | 143 | return $this->getBackendUser()->isInWebMount($pageId) !== null; |
144 | 144 | }); |
145 | 145 | $this->alternativeEntryPoints = array_map('intval', $this->alternativeEntryPoints); |
@@ -77,7 +77,7 @@ |
||
77 | 77 | public function render() |
78 | 78 | { |
79 | 79 | $this->modTSconfig = BackendUtility::getPagesTSconfig((int)$this->expandPage)['mod.']['web_list.'] ?? []; |
80 | - [, , , $allowedTables] = explode('|', $this->bparams); |
|
80 | + [,,, $allowedTables] = explode('|', $this->bparams); |
|
81 | 81 | |
82 | 82 | $withTree = true; |
83 | 83 | if ($allowedTables !== '' && $allowedTables !== '*') { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $this->generateDataArray($versions, $filterTxt); |
122 | 122 | return [ |
123 | 123 | // Only count parent records for pagination |
124 | - 'total' => count(array_filter($this->dataArray, static function ($element) { |
|
124 | + 'total' => count(array_filter($this->dataArray, static function($element) { |
|
125 | 125 | return (int)($element[self::GridColumn_CollectionLevel] ?? 0) === 0; |
126 | 126 | })), |
127 | 127 | 'data' => $this->getDataArray($start, $limit) |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | break; |
592 | 592 | default: |
593 | 593 | if (!$hasDiff) { |
594 | - $state = 'unchanged'; |
|
594 | + $state = 'unchanged'; |
|
595 | 595 | } else { |
596 | 596 | $state = ($hiddenState ?: 'modified'); |
597 | 597 | } |
@@ -181,9 +181,9 @@ |
||
181 | 181 | $formUrl = $this->uriBuilder->buildUriWithRedirectFromRequest( |
182 | 182 | 'password_reset_finish', |
183 | 183 | array_filter(array_merge($parameters, [ |
184 | - 't' => $token, |
|
185 | - 'i' => $identity, |
|
186 | - 'e' => $expirationDate |
|
184 | + 't' => $token, |
|
185 | + 'i' => $identity, |
|
186 | + 'e' => $expirationDate |
|
187 | 187 | ])), |
188 | 188 | $request |
189 | 189 | ); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | } |
81 | 81 | // sort providers |
82 | - uasort($providers, static function ($a, $b) { |
|
82 | + uasort($providers, static function($a, $b) { |
|
83 | 83 | return $b['sorting'] - $a['sorting']; |
84 | 84 | }); |
85 | 85 | return $providers; |
@@ -112,58 +112,58 @@ |
||
112 | 112 | $thisSlugId = 't3js-form-field-slug-id' . StringUtility::getUniqueId(); |
113 | 113 | $mainFieldHtml = []; |
114 | 114 | $mainFieldHtml[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
115 | - $mainFieldHtml[] = $fieldInformationHtml; |
|
116 | - $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px" id="' . htmlspecialchars($thisSlugId) . '">'; |
|
117 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
118 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
119 | - $mainFieldHtml[] = '<div class="input-group">'; |
|
120 | - $mainFieldHtml[] = ($baseUrl ? '<span class="input-group-addon">' . htmlspecialchars($baseUrl) . '</span>' : ''); |
|
115 | + $mainFieldHtml[] = $fieldInformationHtml; |
|
116 | + $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px" id="' . htmlspecialchars($thisSlugId) . '">'; |
|
117 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
118 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
119 | + $mainFieldHtml[] = '<div class="input-group">'; |
|
120 | + $mainFieldHtml[] = ($baseUrl ? '<span class="input-group-addon">' . htmlspecialchars($baseUrl) . '</span>' : ''); |
|
121 | 121 | // We deal with 3 fields here: a readonly field for current / default values, an input |
122 | 122 | // field to manipulate the value, and the final hidden field used to send the value |
123 | - $mainFieldHtml[] = '<input'; |
|
124 | - $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-readonly"'; |
|
125 | - $mainFieldHtml[] = ' data-bs-toggle="tooltip"'; |
|
126 | - $mainFieldHtml[] = ' title="' . htmlspecialchars($itemValue) . '"'; |
|
127 | - $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
128 | - $mainFieldHtml[] = ' readonly'; |
|
129 | - $mainFieldHtml[] = ' />'; |
|
130 | - $mainFieldHtml[] = '<input type="text"'; |
|
131 | - $mainFieldHtml[] = ' id="' . htmlspecialchars(StringUtility::getUniqueId('formengine-input-')) . '"'; |
|
132 | - $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-input hidden"'; |
|
133 | - $mainFieldHtml[] = ' placeholder="' . htmlspecialchars($row['slug'] ?? '/') . '"'; |
|
134 | - $mainFieldHtml[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
135 | - $mainFieldHtml[] = ' data-formengine-input-params="' . htmlspecialchars((string)json_encode(['field' => $parameterArray['itemFormElName'], 'evalList' => implode(',', $evalList)])) . '"'; |
|
136 | - $mainFieldHtml[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
137 | - $mainFieldHtml[] = ' />'; |
|
138 | - $mainFieldHtml[] = '<span class="input-group-btn">'; |
|
139 | - $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
140 | - $mainFieldHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
141 | - $mainFieldHtml[] = '</button>'; |
|
142 | - $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-recreate" type="button" title="' . htmlspecialchars($recreateButtonTitle) . '">'; |
|
143 | - $mainFieldHtml[] = $this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL)->render(); |
|
144 | - $mainFieldHtml[] = '</button>'; |
|
145 | - $mainFieldHtml[] = '</span>'; |
|
146 | - $mainFieldHtml[] = '<input type="hidden"'; |
|
147 | - $mainFieldHtml[] = ' class="t3js-form-field-slug-hidden"'; |
|
148 | - $mainFieldHtml[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
149 | - $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
150 | - $mainFieldHtml[] = ' />'; |
|
151 | - $mainFieldHtml[] = '</div>'; |
|
152 | - $mainFieldHtml[] = '</div>'; |
|
123 | + $mainFieldHtml[] = '<input'; |
|
124 | + $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-readonly"'; |
|
125 | + $mainFieldHtml[] = ' data-bs-toggle="tooltip"'; |
|
126 | + $mainFieldHtml[] = ' title="' . htmlspecialchars($itemValue) . '"'; |
|
127 | + $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
128 | + $mainFieldHtml[] = ' readonly'; |
|
129 | + $mainFieldHtml[] = ' />'; |
|
130 | + $mainFieldHtml[] = '<input type="text"'; |
|
131 | + $mainFieldHtml[] = ' id="' . htmlspecialchars(StringUtility::getUniqueId('formengine-input-')) . '"'; |
|
132 | + $mainFieldHtml[] = ' class="form-control t3js-form-field-slug-input hidden"'; |
|
133 | + $mainFieldHtml[] = ' placeholder="' . htmlspecialchars($row['slug'] ?? '/') . '"'; |
|
134 | + $mainFieldHtml[] = ' data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '"'; |
|
135 | + $mainFieldHtml[] = ' data-formengine-input-params="' . htmlspecialchars((string)json_encode(['field' => $parameterArray['itemFormElName'], 'evalList' => implode(',', $evalList)])) . '"'; |
|
136 | + $mainFieldHtml[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
137 | + $mainFieldHtml[] = ' />'; |
|
138 | + $mainFieldHtml[] = '<span class="input-group-btn">'; |
|
139 | + $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">'; |
|
140 | + $mainFieldHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render(); |
|
141 | + $mainFieldHtml[] = '</button>'; |
|
142 | + $mainFieldHtml[] = '<button class="btn btn-default t3js-form-field-slug-recreate" type="button" title="' . htmlspecialchars($recreateButtonTitle) . '">'; |
|
143 | + $mainFieldHtml[] = $this->iconFactory->getIcon('actions-refresh', Icon::SIZE_SMALL)->render(); |
|
144 | + $mainFieldHtml[] = '</button>'; |
|
145 | + $mainFieldHtml[] = '</span>'; |
|
146 | + $mainFieldHtml[] = '<input type="hidden"'; |
|
147 | + $mainFieldHtml[] = ' class="t3js-form-field-slug-hidden"'; |
|
148 | + $mainFieldHtml[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName']) . '"'; |
|
149 | + $mainFieldHtml[] = ' value="' . htmlspecialchars($itemValue) . '"'; |
|
150 | + $mainFieldHtml[] = ' />'; |
|
151 | + $mainFieldHtml[] = '</div>'; |
|
152 | + $mainFieldHtml[] = '</div>'; |
|
153 | 153 | if (!empty($fieldControlHtml)) { |
154 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
155 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
156 | - $mainFieldHtml[] = $fieldControlHtml; |
|
157 | - $mainFieldHtml[] = '</div>'; |
|
158 | - $mainFieldHtml[] = '</div>'; |
|
154 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
155 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
156 | + $mainFieldHtml[] = $fieldControlHtml; |
|
157 | + $mainFieldHtml[] = '</div>'; |
|
158 | + $mainFieldHtml[] = '</div>'; |
|
159 | 159 | } |
160 | - $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
|
161 | - $mainFieldHtml[] = '<span class="t3js-form-proposal-accepted hidden d-inline-block bg-success mt-2 p-1 ps-2 pe-2 lh-base">' . sprintf(htmlspecialchars($successMessage), '<samp class="text-nowrap">' . htmlspecialchars($baseUrl) . '<span class="fw-bold">/abc/</span></samp>') . '</span>'; |
|
162 | - $mainFieldHtml[] = '<span class="t3js-form-proposal-different hidden d-inline-block bg-warning mt-2 p-1 ps-2 pe-2 lh-base">' . sprintf(htmlspecialchars($errorMessage), '<samp class="text-nowrap">' . htmlspecialchars($baseUrl) . '<span class="fw-bold">/abc/</span></samp>') . '</span>'; |
|
163 | - $mainFieldHtml[] = $fieldWizardHtml; |
|
164 | - $mainFieldHtml[] = '</div>'; |
|
165 | - $mainFieldHtml[] = '</div>'; |
|
166 | - $mainFieldHtml[] = '</div>'; |
|
160 | + $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
|
161 | + $mainFieldHtml[] = '<span class="t3js-form-proposal-accepted hidden d-inline-block bg-success mt-2 p-1 ps-2 pe-2 lh-base">' . sprintf(htmlspecialchars($successMessage), '<samp class="text-nowrap">' . htmlspecialchars($baseUrl) . '<span class="fw-bold">/abc/</span></samp>') . '</span>'; |
|
162 | + $mainFieldHtml[] = '<span class="t3js-form-proposal-different hidden d-inline-block bg-warning mt-2 p-1 ps-2 pe-2 lh-base">' . sprintf(htmlspecialchars($errorMessage), '<samp class="text-nowrap">' . htmlspecialchars($baseUrl) . '<span class="fw-bold">/abc/</span></samp>') . '</span>'; |
|
163 | + $mainFieldHtml[] = $fieldWizardHtml; |
|
164 | + $mainFieldHtml[] = '</div>'; |
|
165 | + $mainFieldHtml[] = '</div>'; |
|
166 | + $mainFieldHtml[] = '</div>'; |
|
167 | 167 | $mainFieldHtml[] = '</div>'; |
168 | 168 | |
169 | 169 | $resultArray['html'] = implode(LF, $mainFieldHtml); |