@@ -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 | } |
@@ -263,7 +263,7 @@ |
||
263 | 263 | if ($this->languageUid > 0) { |
264 | 264 | $row = $this->pageRepository->getPageOverlay($row, $this->languageUid); |
265 | 265 | } |
266 | - $row = $this->enrichWithRelationFields($row['_PAGES_OVERLAY_UID'] ?? $uid, $row); |
|
266 | + $row = $this->enrichWithRelationFields($row['_PAGES_OVERLAY_UID'] ?? $uid, $row); |
|
267 | 267 | self::$pageRecordCache[$currentCacheIdentifier] = $row; |
268 | 268 | } |
269 | 269 | } |
@@ -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 | ); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | (int)$processedFile->getOriginalFile()->getProperty('height') |
73 | 73 | ); |
74 | 74 | } |
75 | - if ($imageDimension->width <=0 || $imageDimension->height <=0) { |
|
75 | + if ($imageDimension->width <= 0 || $imageDimension->height <= 0) { |
|
76 | 76 | throw new \BadMethodCallException('Width and height of the image must be greater than zero', 1597310560); |
77 | 77 | } |
78 | 78 | $result = GeneralUtility::makeInstance(GraphicalFunctions::class)->getImageScale( |
@@ -1436,7 +1436,7 @@ discard block |
||
1436 | 1436 | if (in_array('table', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectATable']) { |
1437 | 1437 | $out[] = '<div class="form-group">'; |
1438 | 1438 | $out[] = ' <label for="SET[queryTable]">Select a table:</label>'; |
1439 | - $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
1439 | + $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
1440 | 1440 | $out[] = '</div>'; |
1441 | 1441 | } |
1442 | 1442 | if ($this->table) { |
@@ -1476,19 +1476,19 @@ discard block |
||
1476 | 1476 | if (in_array('fields', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectFields']) { |
1477 | 1477 | $out[] = '<div class="form-group form-group-with-button-addon">'; |
1478 | 1478 | $out[] = ' <label for="SET[queryFields]">Select fields:</label>'; |
1479 | - $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
1479 | + $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
1480 | 1480 | $out[] = '</div>'; |
1481 | 1481 | } |
1482 | 1482 | if (in_array('query', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableMakeQuery']) { |
1483 | 1483 | $out[] = '<div class="form-group">'; |
1484 | 1484 | $out[] = ' <label>Make Query:</label>'; |
1485 | - $out[] = $queryCode; |
|
1485 | + $out[] = $queryCode; |
|
1486 | 1486 | $out[] = '</div>'; |
1487 | 1487 | } |
1488 | 1488 | if (in_array('group', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableGroupBy']) { |
1489 | 1489 | $out[] = '<div class="form-group form-inline">'; |
1490 | 1490 | $out[] = ' <label for="SET[queryGroup]">Group By:</label>'; |
1491 | - $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
1491 | + $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
1492 | 1492 | $out[] = '</div>'; |
1493 | 1493 | } |
1494 | 1494 | if (in_array('order', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableOrderBy']) { |
@@ -1497,7 +1497,7 @@ discard block |
||
1497 | 1497 | $orderBy[] = $this->mkTypeSelect('SET[queryOrder]', $orderByArr[0], ''); |
1498 | 1498 | $orderBy[] = '<div class="checkbox">'; |
1499 | 1499 | $orderBy[] = ' <label for="checkQueryOrderDesc">'; |
1500 | - $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"') . ' Descending'; |
|
1500 | + $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"') . ' Descending'; |
|
1501 | 1501 | $orderBy[] = ' </label>'; |
1502 | 1502 | $orderBy[] = '</div>'; |
1503 | 1503 | |
@@ -1505,13 +1505,13 @@ discard block |
||
1505 | 1505 | $orderBy[] = $this->mkTypeSelect('SET[queryOrder2]', $orderByArr[1], ''); |
1506 | 1506 | $orderBy[] = '<div class="checkbox">'; |
1507 | 1507 | $orderBy[] = ' <label for="checkQueryOrder2Desc">'; |
1508 | - $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending'; |
|
1508 | + $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending'; |
|
1509 | 1509 | $orderBy[] = ' </label>'; |
1510 | 1510 | $orderBy[] = '</div>'; |
1511 | 1511 | } |
1512 | 1512 | $out[] = '<div class="form-group form-inline">'; |
1513 | 1513 | $out[] = ' <label>Order By:</label>'; |
1514 | - $out[] = implode(LF, $orderBy); |
|
1514 | + $out[] = implode(LF, $orderBy); |
|
1515 | 1515 | $out[] = '</div>'; |
1516 | 1516 | } |
1517 | 1517 | if (in_array('limit', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableLimit']) { |
@@ -1545,10 +1545,10 @@ discard block |
||
1545 | 1545 | $out[] = '<div class="form-group">'; |
1546 | 1546 | $out[] = ' <label>Limit:</label>'; |
1547 | 1547 | $out[] = ' <div class="form-inline">'; |
1548 | - $out[] = implode(LF, $limit); |
|
1548 | + $out[] = implode(LF, $limit); |
|
1549 | 1549 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
1550 | - $out[] = $prevButton; |
|
1551 | - $out[] = $nextButton; |
|
1550 | + $out[] = $prevButton; |
|
1551 | + $out[] = $nextButton; |
|
1552 | 1552 | $out[] = ' </div>'; |
1553 | 1553 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
1554 | 1554 | $out[] = ' <input type="button" class="btn btn-default" data-value="10" value="10">'; |
@@ -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 | } |
@@ -1436,7 +1436,7 @@ discard block |
||
1436 | 1436 | if (in_array('table', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectATable']) { |
1437 | 1437 | $out[] = '<div class="form-group">'; |
1438 | 1438 | $out[] = ' <label for="SET[queryTable]">Select a table:</label>'; |
1439 | - $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
1439 | + $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
1440 | 1440 | $out[] = '</div>'; |
1441 | 1441 | } |
1442 | 1442 | if ($this->table) { |
@@ -1476,19 +1476,19 @@ discard block |
||
1476 | 1476 | if (in_array('fields', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectFields']) { |
1477 | 1477 | $out[] = '<div class="form-group form-group-with-button-addon">'; |
1478 | 1478 | $out[] = ' <label for="SET[queryFields]">Select fields:</label>'; |
1479 | - $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
1479 | + $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
1480 | 1480 | $out[] = '</div>'; |
1481 | 1481 | } |
1482 | 1482 | if (in_array('query', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableMakeQuery']) { |
1483 | 1483 | $out[] = '<div class="form-group">'; |
1484 | 1484 | $out[] = ' <label>Make Query:</label>'; |
1485 | - $out[] = $queryCode; |
|
1485 | + $out[] = $queryCode; |
|
1486 | 1486 | $out[] = '</div>'; |
1487 | 1487 | } |
1488 | 1488 | if (in_array('group', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableGroupBy']) { |
1489 | 1489 | $out[] = '<div class="form-group form-inline">'; |
1490 | 1490 | $out[] = ' <label for="SET[queryGroup]">Group By:</label>'; |
1491 | - $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
1491 | + $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
1492 | 1492 | $out[] = '</div>'; |
1493 | 1493 | } |
1494 | 1494 | if (in_array('order', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableOrderBy']) { |
@@ -1497,7 +1497,7 @@ discard block |
||
1497 | 1497 | $orderBy[] = $this->mkTypeSelect('SET[queryOrder]', $orderByArr[0], ''); |
1498 | 1498 | $orderBy[] = '<div class="checkbox">'; |
1499 | 1499 | $orderBy[] = ' <label for="checkQueryOrderDesc">'; |
1500 | - $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"') . ' Descending'; |
|
1500 | + $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"') . ' Descending'; |
|
1501 | 1501 | $orderBy[] = ' </label>'; |
1502 | 1502 | $orderBy[] = '</div>'; |
1503 | 1503 | |
@@ -1505,13 +1505,13 @@ discard block |
||
1505 | 1505 | $orderBy[] = $this->mkTypeSelect('SET[queryOrder2]', $orderByArr[1], ''); |
1506 | 1506 | $orderBy[] = '<div class="checkbox">'; |
1507 | 1507 | $orderBy[] = ' <label for="checkQueryOrder2Desc">'; |
1508 | - $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending'; |
|
1508 | + $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending'; |
|
1509 | 1509 | $orderBy[] = ' </label>'; |
1510 | 1510 | $orderBy[] = '</div>'; |
1511 | 1511 | } |
1512 | 1512 | $out[] = '<div class="form-group form-inline">'; |
1513 | 1513 | $out[] = ' <label>Order By:</label>'; |
1514 | - $out[] = implode(LF, $orderBy); |
|
1514 | + $out[] = implode(LF, $orderBy); |
|
1515 | 1515 | $out[] = '</div>'; |
1516 | 1516 | } |
1517 | 1517 | if (in_array('limit', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableLimit']) { |
@@ -1545,10 +1545,10 @@ discard block |
||
1545 | 1545 | $out[] = '<div class="form-group">'; |
1546 | 1546 | $out[] = ' <label>Limit:</label>'; |
1547 | 1547 | $out[] = ' <div class="form-inline">'; |
1548 | - $out[] = implode(LF, $limit); |
|
1548 | + $out[] = implode(LF, $limit); |
|
1549 | 1549 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
1550 | - $out[] = $prevButton; |
|
1551 | - $out[] = $nextButton; |
|
1550 | + $out[] = $prevButton; |
|
1551 | + $out[] = $nextButton; |
|
1552 | 1552 | $out[] = ' </div>'; |
1553 | 1553 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
1554 | 1554 | $out[] = ' <input type="button" class="btn btn-default" data-value="10" value="10">'; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | return array_filter( |
53 | 53 | $configuration, |
54 | - function ($value, $name) { |
|
54 | + function($value, $name) { |
|
55 | 55 | return !empty($value) && in_array($name, ['width', 'height'], true); |
56 | 56 | }, |
57 | 57 | ARRAY_FILTER_USE_BOTH |