@@ -2538,7 +2538,7 @@ discard block |
||
2538 | 2538 | if (in_array('table', $enableArr) && !($userTsConfig['mod.']['dbint.']['disableSelectATable'] ?? false)) { |
2539 | 2539 | $out[] = '<div class="form-group">'; |
2540 | 2540 | $out[] = ' <label for="SET[queryTable]">Select a table:</label>'; |
2541 | - $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
2541 | + $out[] = $this->mkTableSelect('SET[queryTable]', $this->table); |
|
2542 | 2542 | $out[] = '</div>'; |
2543 | 2543 | } |
2544 | 2544 | if ($this->table) { |
@@ -2578,19 +2578,19 @@ discard block |
||
2578 | 2578 | if (in_array('fields', $enableArr) && !($userTsConfig['mod.']['dbint.']['disableSelectFields'] ?? false)) { |
2579 | 2579 | $out[] = '<div class="form-group form-group-with-button-addon">'; |
2580 | 2580 | $out[] = ' <label for="SET[queryFields]">Select fields:</label>'; |
2581 | - $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
2581 | + $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']); |
|
2582 | 2582 | $out[] = '</div>'; |
2583 | 2583 | } |
2584 | 2584 | if (in_array('query', $enableArr) && !($userTsConfig['mod.']['dbint.']['disableMakeQuery'] ?? false)) { |
2585 | 2585 | $out[] = '<div class="form-group">'; |
2586 | 2586 | $out[] = ' <label>Make Query:</label>'; |
2587 | - $out[] = $queryCode; |
|
2587 | + $out[] = $queryCode; |
|
2588 | 2588 | $out[] = '</div>'; |
2589 | 2589 | } |
2590 | 2590 | if (in_array('group', $enableArr) && !($userTsConfig['mod.']['dbint.']['disableGroupBy'] ?? false)) { |
2591 | 2591 | $out[] = '<div class="form-group form-inline">'; |
2592 | 2592 | $out[] = ' <label for="SET[queryGroup]">Group By:</label>'; |
2593 | - $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
2593 | + $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], ''); |
|
2594 | 2594 | $out[] = '</div>'; |
2595 | 2595 | } |
2596 | 2596 | if (in_array('order', $enableArr) && !($userTsConfig['mod.']['dbint.']['disableOrderBy'] ?? false)) { |
@@ -2598,20 +2598,20 @@ discard block |
||
2598 | 2598 | $orderBy = []; |
2599 | 2599 | $orderBy[] = $this->mkTypeSelect('SET[queryOrder]', $orderByArr[0], ''); |
2600 | 2600 | $orderBy[] = '<div class="form-check">'; |
2601 | - $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'] ?? '', '', '', 'id="checkQueryOrderDesc"'); |
|
2601 | + $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'] ?? '', '', '', 'id="checkQueryOrderDesc"'); |
|
2602 | 2602 | $orderBy[] = ' <label class="form-check-label" for="checkQueryOrderDesc">Descending</label>'; |
2603 | 2603 | $orderBy[] = '</div>'; |
2604 | 2604 | |
2605 | 2605 | if ($orderByArr[0]) { |
2606 | 2606 | $orderBy[] = $this->mkTypeSelect('SET[queryOrder2]', $orderByArr[1], ''); |
2607 | 2607 | $orderBy[] = '<div class="form-check">'; |
2608 | - $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending'; |
|
2608 | + $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending'; |
|
2609 | 2609 | $orderBy[] = ' <label class="form-check-label" for="checkQueryOrder2Desc">Descending</label>'; |
2610 | 2610 | $orderBy[] = '</div>'; |
2611 | 2611 | } |
2612 | 2612 | $out[] = '<div class="form-group form-inline">'; |
2613 | 2613 | $out[] = ' <label>Order By:</label>'; |
2614 | - $out[] = implode(LF, $orderBy); |
|
2614 | + $out[] = implode(LF, $orderBy); |
|
2615 | 2615 | $out[] = '</div>'; |
2616 | 2616 | } |
2617 | 2617 | if (in_array('limit', $enableArr) && !($userTsConfig['mod.']['dbint.']['disableLimit'] ?? false)) { |
@@ -2645,10 +2645,10 @@ discard block |
||
2645 | 2645 | $out[] = '<div class="form-group">'; |
2646 | 2646 | $out[] = ' <label>Limit:</label>'; |
2647 | 2647 | $out[] = ' <div class="form-inline">'; |
2648 | - $out[] = implode(LF, $limit); |
|
2648 | + $out[] = implode(LF, $limit); |
|
2649 | 2649 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
2650 | - $out[] = $prevButton; |
|
2651 | - $out[] = $nextButton; |
|
2650 | + $out[] = $prevButton; |
|
2651 | + $out[] = $nextButton; |
|
2652 | 2652 | $out[] = ' </div>'; |
2653 | 2653 | $out[] = ' <div class="btn-group t3js-limit-submit">'; |
2654 | 2654 | $out[] = ' <input type="button" class="btn btn-default" data-value="10" value="10">'; |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | $files = iterator_to_array($this->folderObject->searchFiles($this->searchDemand)); |
271 | 271 | // @todo Currently files, which got deleted in the file system, are still found. |
272 | 272 | // Therefore we have to ask their parent folder if it still contains the file. |
273 | - $files = array_filter($files, static function (FileInterface $file): bool { |
|
273 | + $files = array_filter($files, static function(FileInterface $file): bool { |
|
274 | 274 | try { |
275 | 275 | if ($file->getParentFolder()->hasFile($file->getName())) { |
276 | 276 | return true; |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | $theData[$v] = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels._PATH_')); |
369 | 369 | } else { |
370 | 370 | // Normal row |
371 | - $theData[$v] = $this->linkWrapSort($v); |
|
371 | + $theData[$v] = $this->linkWrapSort($v); |
|
372 | 372 | } |
373 | 373 | } |
374 | 374 | |
@@ -705,7 +705,7 @@ discard block |
||
705 | 705 | { |
706 | 706 | // first two keys are "0" (default) and "-1" (multiple), after that comes the "other languages" |
707 | 707 | $allSystemLanguages = $this->translateTools->getSystemLanguages(); |
708 | - return array_filter($allSystemLanguages, function ($languageRecord) { |
|
708 | + return array_filter($allSystemLanguages, function($languageRecord) { |
|
709 | 709 | if ($languageRecord['uid'] === -1 || $languageRecord['uid'] === 0 || !$this->getBackendUser()->checkLanguageAccess($languageRecord['uid'])) { |
710 | 710 | return false; |
711 | 711 | } |
@@ -125,25 +125,25 @@ discard block |
||
125 | 125 | $html = []; |
126 | 126 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
127 | 127 | $html[] = $fieldInformationHtml; |
128 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
129 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
130 | - $html[] = '<div class="form-wizards-element">'; |
|
128 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
129 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
130 | + $html[] = '<div class="form-wizards-element">'; |
|
131 | 131 | if (!$disabled) { |
132 | 132 | // Add an empty hidden field which will send a blank value if all items are unselected. |
133 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
133 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
134 | 134 | } |
135 | - $html[] = $selectElement; |
|
136 | - $html[] = '</div>'; |
|
135 | + $html[] = $selectElement; |
|
136 | + $html[] = '</div>'; |
|
137 | 137 | if (!$disabled) { |
138 | 138 | if (!empty($fieldControlHtml)) { |
139 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
140 | - $html[] = $fieldControlHtml; |
|
141 | - $html[] = '</div>'; |
|
139 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
140 | + $html[] = $fieldControlHtml; |
|
141 | + $html[] = '</div>'; |
|
142 | 142 | } |
143 | 143 | $html[] = '</div>'; // Close form-wizards-aside |
144 | - $html[] = '<p>'; |
|
145 | - $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
146 | - $html[] = '</p>'; |
|
144 | + $html[] = '<p>'; |
|
145 | + $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
146 | + $html[] = '</p>'; |
|
147 | 147 | if (!empty($fieldWizardHtml)) { |
148 | 148 | $html[] = '<div class="form-wizards-items-bottom">'; |
149 | 149 | $html[] = $fieldWizardHtml; |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | } else { |
153 | 153 | $html[] = '</div>'; // Close form-wizards-aside |
154 | 154 | } |
155 | - $html[] = '</div>'; |
|
155 | + $html[] = '</div>'; |
|
156 | 156 | $html[] = '</div>'; |
157 | 157 | |
158 | 158 | $resultArray['html'] = implode(LF, $html); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | |
199 | 199 | $html = []; |
200 | 200 | $html[] = '<select ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
201 | - $html[] = implode(LF, $optionElements); |
|
201 | + $html[] = implode(LF, $optionElements); |
|
202 | 202 | $html[] = '</select>'; |
203 | 203 | |
204 | 204 | return implode(LF, $html); |