@@ -89,14 +89,14 @@ discard block |
||
89 | 89 | if ($config['readOnly']) { |
90 | 90 | $html = []; |
91 | 91 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
92 | - $html[] = $fieldInformationHtml; |
|
93 | - $html[] = '<div class="form-wizards-wrap">'; |
|
94 | - $html[] = '<div class="form-wizards-element">'; |
|
95 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
96 | - $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
97 | - $html[] = '</div>'; |
|
98 | - $html[] = '</div>'; |
|
99 | - $html[] = '</div>'; |
|
92 | + $html[] = $fieldInformationHtml; |
|
93 | + $html[] = '<div class="form-wizards-wrap">'; |
|
94 | + $html[] = '<div class="form-wizards-element">'; |
|
95 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
96 | + $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>'; |
|
97 | + $html[] = '</div>'; |
|
98 | + $html[] = '</div>'; |
|
99 | + $html[] = '</div>'; |
|
100 | 100 | $html[] = '</div>'; |
101 | 101 | $resultArray['html'] = implode(LF, $html); |
102 | 102 | return $resultArray; |
@@ -178,23 +178,23 @@ discard block |
||
178 | 178 | |
179 | 179 | $mainFieldHtml = []; |
180 | 180 | $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
181 | - $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
182 | - $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
183 | - $mainFieldHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
184 | - $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
185 | - $mainFieldHtml[] = '</div>'; |
|
186 | - $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
187 | - $mainFieldHtml[] = '<div class="btn-group">'; |
|
188 | - $mainFieldHtml[] = $fieldControlHtml; |
|
189 | - $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
190 | - $mainFieldHtml[] = '</div>'; |
|
191 | - $mainFieldHtml[] = '</div>'; |
|
181 | + $mainFieldHtml[] = '<div class="form-wizards-wrap">'; |
|
182 | + $mainFieldHtml[] = '<div class="form-wizards-element">'; |
|
183 | + $mainFieldHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />'; |
|
184 | + $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />'; |
|
185 | + $mainFieldHtml[] = '</div>'; |
|
186 | + $mainFieldHtml[] = '<div class="form-wizards-items-aside">'; |
|
187 | + $mainFieldHtml[] = '<div class="btn-group">'; |
|
188 | + $mainFieldHtml[] = $fieldControlHtml; |
|
189 | + $mainFieldHtml[] = implode(LF, $valuePickerHtml); |
|
190 | + $mainFieldHtml[] = '</div>'; |
|
191 | + $mainFieldHtml[] = '</div>'; |
|
192 | 192 | if (!empty($fieldWizardHtml)) { |
193 | 193 | $mainFieldHtml[] = '<div class="form-wizards-items-bottom">'; |
194 | 194 | $mainFieldHtml[] = $fieldWizardHtml; |
195 | 195 | $mainFieldHtml[] = '</div>'; |
196 | 196 | } |
197 | - $mainFieldHtml[] = '</div>'; |
|
197 | + $mainFieldHtml[] = '</div>'; |
|
198 | 198 | $mainFieldHtml[] = '</div>'; |
199 | 199 | $mainFieldHtml = implode(LF, $mainFieldHtml); |
200 | 200 | |
@@ -204,11 +204,11 @@ discard block |
||
204 | 204 | $fullElement = []; |
205 | 205 | $fullElement[] = '<div class="t3-form-field-disable"></div>'; |
206 | 206 | $fullElement[] = '<div class="checkbox t3-form-field-eval-null-checkbox">'; |
207 | - $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
208 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
209 | - $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
210 | - $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
211 | - $fullElement[] = '</label>'; |
|
207 | + $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
208 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />'; |
|
209 | + $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />'; |
|
210 | + $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox'); |
|
211 | + $fullElement[] = '</label>'; |
|
212 | 212 | $fullElement[] = '</div>'; |
213 | 213 | $fullElement[] = $mainFieldHtml; |
214 | 214 | $fullElement = implode(LF, $fullElement); |
@@ -237,19 +237,19 @@ discard block |
||
237 | 237 | } |
238 | 238 | $fullElement = []; |
239 | 239 | $fullElement[] = '<div class="checkbox t3js-form-field-eval-null-placeholder-checkbox">'; |
240 | - $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
241 | - $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
242 | - $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
243 | - $fullElement[] = $overrideLabel; |
|
244 | - $fullElement[] = '</label>'; |
|
240 | + $fullElement[] = '<label for="' . $nullControlNameEscaped . '">'; |
|
241 | + $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />'; |
|
242 | + $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />'; |
|
243 | + $fullElement[] = $overrideLabel; |
|
244 | + $fullElement[] = '</label>'; |
|
245 | 245 | $fullElement[] = '</div>'; |
246 | 246 | $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">'; |
247 | - $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
248 | - $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
249 | - $fullElement[] = '</div>'; |
|
247 | + $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">'; |
|
248 | + $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />'; |
|
249 | + $fullElement[] = '</div>'; |
|
250 | 250 | $fullElement[] = '</div>'; |
251 | 251 | $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">'; |
252 | - $fullElement[] = $mainFieldHtml; |
|
252 | + $fullElement[] = $mainFieldHtml; |
|
253 | 253 | $fullElement[] = '</div>'; |
254 | 254 | $fullElement = implode(LF, $fullElement); |
255 | 255 | } |
@@ -128,7 +128,7 @@ |
||
128 | 128 | } |
129 | 129 | uasort( |
130 | 130 | $groupedQueries, |
131 | - static function ($a, $b) { |
|
131 | + static function($a, $b) { |
|
132 | 132 | return $b['time'] <=> $a['time']; |
133 | 133 | } |
134 | 134 | ); |
@@ -266,7 +266,7 @@ |
||
266 | 266 | $startPid = abs($startPid); |
267 | 267 | $recursiveStoragePids = array_merge( |
268 | 268 | $recursiveStoragePids, |
269 | - [ $startPid ], |
|
269 | + [$startPid], |
|
270 | 270 | $this->getPageChildrenRecursive($startPid, $recursionDepth, 0, $permsClause) |
271 | 271 | ); |
272 | 272 | } |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | ); |
528 | 528 | if ($pageId > 0) { |
529 | 529 | $pageList = array_merge( |
530 | - [ (int)$pageId ], |
|
530 | + [(int)$pageId], |
|
531 | 531 | $this->getPageChildrenRecursive((int)$pageId, (int)$recursionLevel, 0, $permsClause) |
532 | 532 | ); |
533 | 533 | } else { |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | foreach ($mountPoints as $mountPoint) { |
541 | 541 | $pageList = array_merge( |
542 | 542 | $pageList |
543 | - [ (int)$mountPoint ], |
|
543 | + [(int)$mountPoint], |
|
544 | 544 | $this->getPageChildrenRecursive((int)$mountPoint, (int)$recursionLevel, 0, $permsClause) |
545 | 545 | ); |
546 | 546 | } |
@@ -88,7 +88,6 @@ |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Register the doc header |
91 | - |
|
92 | 91 | * @param int $pageId |
93 | 92 | * @param int $languageId |
94 | 93 | * @param string $targetUrl |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $this->redirect('unresolvedDependencies', 'List', null, ['extensionKey' => $extensionKey]); |
111 | 111 | } |
112 | 112 | } |
113 | - } catch (ExtensionManagerException|PackageStatesFileNotWritableException $e) { |
|
113 | + } catch (ExtensionManagerException | PackageStatesFileNotWritableException $e) { |
|
114 | 114 | $this->addFlashMessage($e->getMessage(), '', FlashMessage::ERROR); |
115 | 115 | } |
116 | 116 | $this->redirect('index', 'List', null, [ |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | ] |
157 | 157 | ) ?? '' |
158 | 158 | ); |
159 | - } catch (ExtensionManagerException|Exception $e) { |
|
159 | + } catch (ExtensionManagerException | Exception $e) { |
|
160 | 160 | $this->addFlashMessage($e->getMessage(), '', FlashMessage::ERROR); |
161 | 161 | } |
162 | 162 |
@@ -190,7 +190,7 @@ |
||
190 | 190 | { |
191 | 191 | $files = scandir(Environment::getPublicPath() . '/'); |
192 | 192 | $files = is_array($files) ? $files : []; |
193 | - $files = array_filter($files, function ($file) { |
|
193 | + $files = array_filter($files, function($file) { |
|
194 | 194 | return @is_file(Environment::getPublicPath() . '/' . $file) && preg_match('~^' . self::FIRST_INSTALL_FILE_PATH . '.*~i', $file); |
195 | 195 | }); |
196 | 196 | return $files; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * @internal |
178 | 178 | * @var array |
179 | 179 | */ |
180 | - protected $moduleData = []; |
|
180 | + protected $moduleData = []; |
|
181 | 181 | |
182 | 182 | /** |
183 | 183 | * Page id |
@@ -1000,7 +1000,7 @@ discard block |
||
1000 | 1000 | if ($totalItems > $itemsLimitPerTable) { |
1001 | 1001 | $countOnFirstPage = $totalItems > $itemsLimitSingleTable ? $itemsLimitSingleTable : $totalItems; |
1002 | 1002 | $hasMore = $totalItems > $itemsLimitSingleTable; |
1003 | - $colspan = (count($this->fieldArray) + 1); |
|
1003 | + $colspan = (count($this->fieldArray) + 1); |
|
1004 | 1004 | $rowOutput .= '<tr><td colspan="' . $colspan . '"> |
1005 | 1005 | <a href="' . htmlspecialchars($this->listURL() . '&table=' . rawurlencode($tableIdentifier)) . '" class="btn btn-default">' |
1006 | 1006 | . '<span class="t3-icon fa fa-chevron-down"></span> <i>[1 - ' . $countOnFirstPage . ($hasMore ? '+' : '') . ']</i></a> |
@@ -1263,7 +1263,7 @@ discard block |
||
1263 | 1263 | } |
1264 | 1264 | |
1265 | 1265 | $tagAttributes = array_map( |
1266 | - function ($attributeValue) { |
|
1266 | + function($attributeValue) { |
|
1267 | 1267 | if (is_array($attributeValue)) { |
1268 | 1268 | return implode(' ', $attributeValue); |
1269 | 1269 | } |
@@ -1841,7 +1841,7 @@ discard block |
||
1841 | 1841 | $params = [ |
1842 | 1842 | 'edit' => [ |
1843 | 1843 | $table => [ |
1844 | - (0-($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
1844 | + (0 - ($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
1845 | 1845 | ] |
1846 | 1846 | ], |
1847 | 1847 | 'returnUrl' => $this->listURL() |
@@ -2217,8 +2217,8 @@ discard block |
||
2217 | 2217 | $possibleTranslations = $this->possibleTranslations; |
2218 | 2218 | if ($table === 'pages') { |
2219 | 2219 | // Calculate possible translations for pages |
2220 | - $possibleTranslations = array_map(static function ($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
2221 | - $possibleTranslations = array_filter($possibleTranslations, static function ($languageUid) { return $languageUid > 0;}); |
|
2220 | + $possibleTranslations = array_map(static function($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
2221 | + $possibleTranslations = array_filter($possibleTranslations, static function($languageUid) { return $languageUid > 0; }); |
|
2222 | 2222 | } |
2223 | 2223 | |
2224 | 2224 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |
@@ -2264,7 +2264,7 @@ discard block |
||
2264 | 2264 | { |
2265 | 2265 | $lang = $this->getLanguageService(); |
2266 | 2266 | // Load already selected fields, if any: |
2267 | - $setFields = (array)($this->setFields[$table]?? []); |
|
2267 | + $setFields = (array)($this->setFields[$table] ?? []); |
|
2268 | 2268 | // Request fields from table: |
2269 | 2269 | $fields = $this->makeFieldList($table, false, true); |
2270 | 2270 | // Add pseudo "control" fields |
@@ -1688,7 +1688,7 @@ |
||
1688 | 1688 | if (!$isDeletePlaceHolder) { |
1689 | 1689 | $attributes = $this->getPreviewUriBuilder($table, $row)->serializeDispatcherAttributes(); |
1690 | 1690 | $viewAction = '<a class="btn btn-default" href="#" ' . $attributes |
1691 | - . ' title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.showPage')) . '">'; |
|
1691 | + . ' title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.showPage')) . '">'; |
|
1692 | 1692 | if ($table === 'pages') { |
1693 | 1693 | $viewAction .= $this->iconFactory->getIcon('actions-view-page', Icon::SIZE_SMALL)->render(); |
1694 | 1694 | } else { |
@@ -146,15 +146,15 @@ |
||
146 | 146 | $processedTitle = str_replace('\\n', '<br />', htmlspecialchars($fakeParameterArray['fieldConf']['label'])); |
147 | 147 | $html = []; |
148 | 148 | $html[] = '<div class="form-section">'; |
149 | - $html[] = '<div class="form-group t3js-formengine-palette-field t3js-formengine-validation-marker">'; |
|
150 | - $html[] = '<label class="t3js-formengine-label">'; |
|
151 | - $html[] = BackendUtility::wrapInHelp($parameterArray['_cshKey'], $flexFormFieldName, $processedTitle); |
|
152 | - $html[] = $showFieldName ? ('<code>[' . htmlspecialchars($flexFormFieldName) . ']</code>') : ''; |
|
153 | - $html[] = '</label>'; |
|
154 | - $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
|
155 | - $html[] = $childResult['html']; |
|
156 | - $html[] = '</div>'; |
|
157 | - $html[] = '</div>'; |
|
149 | + $html[] = '<div class="form-group t3js-formengine-palette-field t3js-formengine-validation-marker">'; |
|
150 | + $html[] = '<label class="t3js-formengine-label">'; |
|
151 | + $html[] = BackendUtility::wrapInHelp($parameterArray['_cshKey'], $flexFormFieldName, $processedTitle); |
|
152 | + $html[] = $showFieldName ? ('<code>[' . htmlspecialchars($flexFormFieldName) . ']</code>') : ''; |
|
153 | + $html[] = '</label>'; |
|
154 | + $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
|
155 | + $html[] = $childResult['html']; |
|
156 | + $html[] = '</div>'; |
|
157 | + $html[] = '</div>'; |
|
158 | 158 | $html[] = '</div>'; |
159 | 159 | $resultArray['html'] .= implode(LF, $html); |
160 | 160 | $resultArray = $this->mergeChildReturnIntoExistingResult($resultArray, $childResult, false); |