Passed
Push — master ( 17b2e4...8b3b73 )
by
unknown
18:02
created
typo3/sysext/lowlevel/Classes/Database/QueryGenerator.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2530,7 +2530,7 @@  discard block
 block discarded – undo
2530 2530
         if (in_array('table', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectATable']) {
2531 2531
             $out[] = '<div class="form-group">';
2532 2532
             $out[] = '	<label for="SET[queryTable]">Select a table:</label>';
2533
-            $out[] =    $this->mkTableSelect('SET[queryTable]', $this->table);
2533
+            $out[] = $this->mkTableSelect('SET[queryTable]', $this->table);
2534 2534
             $out[] = '</div>';
2535 2535
         }
2536 2536
         if ($this->table) {
@@ -2570,19 +2570,19 @@  discard block
 block discarded – undo
2570 2570
             if (in_array('fields', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectFields']) {
2571 2571
                 $out[] = '<div class="form-group form-group-with-button-addon">';
2572 2572
                 $out[] = '	<label for="SET[queryFields]">Select fields:</label>';
2573
-                $out[] =    $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']);
2573
+                $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']);
2574 2574
                 $out[] = '</div>';
2575 2575
             }
2576 2576
             if (in_array('query', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableMakeQuery']) {
2577 2577
                 $out[] = '<div class="form-group">';
2578 2578
                 $out[] = '	<label>Make Query:</label>';
2579
-                $out[] =    $queryCode;
2579
+                $out[] = $queryCode;
2580 2580
                 $out[] = '</div>';
2581 2581
             }
2582 2582
             if (in_array('group', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableGroupBy']) {
2583 2583
                 $out[] = '<div class="form-group form-inline">';
2584 2584
                 $out[] = '	<label for="SET[queryGroup]">Group By:</label>';
2585
-                $out[] =     $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], '');
2585
+                $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], '');
2586 2586
                 $out[] = '</div>';
2587 2587
             }
2588 2588
             if (in_array('order', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableOrderBy']) {
@@ -2590,20 +2590,20 @@  discard block
 block discarded – undo
2590 2590
                 $orderBy = [];
2591 2591
                 $orderBy[] = $this->mkTypeSelect('SET[queryOrder]', $orderByArr[0], '');
2592 2592
                 $orderBy[] = '<div class="form-check">';
2593
-                $orderBy[] =    BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"');
2593
+                $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"');
2594 2594
                 $orderBy[] = '	<label class="form-check-label" for="checkQueryOrderDesc">Descending</label>';
2595 2595
                 $orderBy[] = '</div>';
2596 2596
 
2597 2597
                 if ($orderByArr[0]) {
2598 2598
                     $orderBy[] = $this->mkTypeSelect('SET[queryOrder2]', $orderByArr[1], '');
2599 2599
                     $orderBy[] = '<div class="form-check">';
2600
-                    $orderBy[] =    BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending';
2600
+                    $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"') . ' Descending';
2601 2601
                     $orderBy[] = '	<label class="form-check-label" for="checkQueryOrder2Desc">Descending</label>';
2602 2602
                     $orderBy[] = '</div>';
2603 2603
                 }
2604 2604
                 $out[] = '<div class="form-group form-inline">';
2605 2605
                 $out[] = '	<label>Order By:</label>';
2606
-                $out[] =     implode(LF, $orderBy);
2606
+                $out[] = implode(LF, $orderBy);
2607 2607
                 $out[] = '</div>';
2608 2608
             }
2609 2609
             if (in_array('limit', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableLimit']) {
@@ -2637,10 +2637,10 @@  discard block
 block discarded – undo
2637 2637
                 $out[] = '<div class="form-group">';
2638 2638
                 $out[] = '	<label>Limit:</label>';
2639 2639
                 $out[] = '	<div class="form-inline">';
2640
-                $out[] =        implode(LF, $limit);
2640
+                $out[] = implode(LF, $limit);
2641 2641
                 $out[] = '		<div class="btn-group t3js-limit-submit">';
2642
-                $out[] =            $prevButton;
2643
-                $out[] =            $nextButton;
2642
+                $out[] = $prevButton;
2643
+                $out[] = $nextButton;
2644 2644
                 $out[] = '		</div>';
2645 2645
                 $out[] = '		<div class="btn-group t3js-limit-submit">';
2646 2646
                 $out[] = '			<input type="button" class="btn btn-default" data-value="10" value="10">';
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Database/QueryGenerator.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1441,7 +1441,7 @@  discard block
 block discarded – undo
1441 1441
         if (in_array('table', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectATable']) {
1442 1442
             $out[] = '<div class="form-group">';
1443 1443
             $out[] = '	<label for="SET[queryTable]">Select a table:</label>';
1444
-            $out[] =    $this->mkTableSelect('SET[queryTable]', $this->table);
1444
+            $out[] = $this->mkTableSelect('SET[queryTable]', $this->table);
1445 1445
             $out[] = '</div>';
1446 1446
         }
1447 1447
         if ($this->table) {
@@ -1481,19 +1481,19 @@  discard block
 block discarded – undo
1481 1481
             if (in_array('fields', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableSelectFields']) {
1482 1482
                 $out[] = '<div class="form-group form-group-with-button-addon">';
1483 1483
                 $out[] = '	<label for="SET[queryFields]">Select fields:</label>';
1484
-                $out[] =    $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']);
1484
+                $out[] = $this->mkFieldToInputSelect('SET[queryFields]', $this->extFieldLists['queryFields']);
1485 1485
                 $out[] = '</div>';
1486 1486
             }
1487 1487
             if (in_array('query', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableMakeQuery']) {
1488 1488
                 $out[] = '<div class="form-group">';
1489 1489
                 $out[] = '	<label>Make Query:</label>';
1490
-                $out[] =    $queryCode;
1490
+                $out[] = $queryCode;
1491 1491
                 $out[] = '</div>';
1492 1492
             }
1493 1493
             if (in_array('group', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableGroupBy']) {
1494 1494
                 $out[] = '<div class="form-group form-inline">';
1495 1495
                 $out[] = '	<label for="SET[queryGroup]">Group By:</label>';
1496
-                $out[] =     $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], '');
1496
+                $out[] = $this->mkTypeSelect('SET[queryGroup]', $this->extFieldLists['queryGroup'], '');
1497 1497
                 $out[] = '</div>';
1498 1498
             }
1499 1499
             if (in_array('order', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableOrderBy']) {
@@ -1503,7 +1503,7 @@  discard block
 block discarded – undo
1503 1503
                 $orderBy[] = '<div class="form-check">';
1504 1504
                 $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrderDesc]', $modSettings['queryOrderDesc'], '', '', 'id="checkQueryOrderDesc"');
1505 1505
                 $orderBy[] = '	<label class="form-check-label" for="checkQueryOrderDesc">';
1506
-                $orderBy[] =        'Descending';
1506
+                $orderBy[] = 'Descending';
1507 1507
                 $orderBy[] = '	</label>';
1508 1508
                 $orderBy[] = '</div>';
1509 1509
 
@@ -1512,13 +1512,13 @@  discard block
 block discarded – undo
1512 1512
                     $orderBy[] = '<div class="form-check">';
1513 1513
                     $orderBy[] = BackendUtility::getFuncCheck(0, 'SET[queryOrder2Desc]', $modSettings['queryOrder2Desc'], '', '', 'id="checkQueryOrder2Desc"');
1514 1514
                     $orderBy[] = '	<label class="form-check-label" for="checkQueryOrder2Desc">';
1515
-                    $orderBy[] =        'Descending';
1515
+                    $orderBy[] = 'Descending';
1516 1516
                     $orderBy[] = '	</label>';
1517 1517
                     $orderBy[] = '</div>';
1518 1518
                 }
1519 1519
                 $out[] = '<div class="form-group form-inline">';
1520 1520
                 $out[] = '	<label>Order By:</label>';
1521
-                $out[] =     implode(LF, $orderBy);
1521
+                $out[] = implode(LF, $orderBy);
1522 1522
                 $out[] = '</div>';
1523 1523
             }
1524 1524
             if (in_array('limit', $enableArr) && !$userTsConfig['mod.']['dbint.']['disableLimit']) {
@@ -1552,10 +1552,10 @@  discard block
 block discarded – undo
1552 1552
                 $out[] = '<div class="form-group">';
1553 1553
                 $out[] = '	<label>Limit:</label>';
1554 1554
                 $out[] = '	<div class="form-inline">';
1555
-                $out[] =        implode(LF, $limit);
1555
+                $out[] = implode(LF, $limit);
1556 1556
                 $out[] = '		<div class="btn-group t3js-limit-submit">';
1557
-                $out[] =            $prevButton;
1558
-                $out[] =            $nextButton;
1557
+                $out[] = $prevButton;
1558
+                $out[] = $nextButton;
1559 1559
                 $out[] = '		</div>';
1560 1560
                 $out[] = '		<div class="btn-group t3js-limit-submit">';
1561 1561
                 $out[] = '			<input type="button" class="btn btn-default" data-value="10" value="10">';
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Element/InputDateTimeElement.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
             $itemValue = $this->formatValue($format, $itemValue);
118 118
             $html = [];
119 119
             $html[] = '<div class="formengine-field-item t3js-formengine-field-item">';
120
-            $html[] =   $fieldInformationHtml;
121
-            $html[] =   '<div class="form-wizards-wrap">';
122
-            $html[] =       '<div class="form-wizards-element">';
123
-            $html[] =           '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
124
-            $html[] =               '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>';
125
-            $html[] =           '</div>';
126
-            $html[] =       '</div>';
127
-            $html[] =   '</div>';
120
+            $html[] = $fieldInformationHtml;
121
+            $html[] = '<div class="form-wizards-wrap">';
122
+            $html[] = '<div class="form-wizards-element">';
123
+            $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
124
+            $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>';
125
+            $html[] = '</div>';
126
+            $html[] = '</div>';
127
+            $html[] = '</div>';
128 128
             $html[] = '</div>';
129 129
             $resultArray['html'] = implode(LF, $html);
130 130
             return $resultArray;
@@ -193,31 +193,31 @@  discard block
 block discarded – undo
193 193
 
194 194
         $expansionHtml = [];
195 195
         $expansionHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
196
-        $expansionHtml[] =  '<div class="form-wizards-wrap">';
197
-        $expansionHtml[] =      '<div class="form-wizards-element">';
198
-        $expansionHtml[] =          '<div class="input-group">';
199
-        $expansionHtml[] =              '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
200
-        $expansionHtml[] =              '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
201
-        $expansionHtml[] =              '<span class="input-group-btn">';
202
-        $expansionHtml[] =                  '<label class="btn btn-default" for="' . $attributes['id'] . '">';
203
-        $expansionHtml[] =                      $this->iconFactory->getIcon('actions-edit-pick-date', Icon::SIZE_SMALL)->render();
204
-        $expansionHtml[] =                  '</label>';
205
-        $expansionHtml[] =              '</span>';
206
-        $expansionHtml[] =          '</div>';
207
-        $expansionHtml[] =      '</div>';
196
+        $expansionHtml[] = '<div class="form-wizards-wrap">';
197
+        $expansionHtml[] = '<div class="form-wizards-element">';
198
+        $expansionHtml[] = '<div class="input-group">';
199
+        $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
200
+        $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
201
+        $expansionHtml[] = '<span class="input-group-btn">';
202
+        $expansionHtml[] = '<label class="btn btn-default" for="' . $attributes['id'] . '">';
203
+        $expansionHtml[] = $this->iconFactory->getIcon('actions-edit-pick-date', Icon::SIZE_SMALL)->render();
204
+        $expansionHtml[] = '</label>';
205
+        $expansionHtml[] = '</span>';
206
+        $expansionHtml[] = '</div>';
207
+        $expansionHtml[] = '</div>';
208 208
         if (!empty($fieldControlHtml)) {
209
-            $expansionHtml[] =      '<div class="form-wizards-items-aside">';
210
-            $expansionHtml[] =          '<div class="btn-group">';
211
-            $expansionHtml[] =              $fieldControlHtml;
212
-            $expansionHtml[] =          '</div>';
213
-            $expansionHtml[] =      '</div>';
209
+            $expansionHtml[] = '<div class="form-wizards-items-aside">';
210
+            $expansionHtml[] = '<div class="btn-group">';
211
+            $expansionHtml[] = $fieldControlHtml;
212
+            $expansionHtml[] = '</div>';
213
+            $expansionHtml[] = '</div>';
214 214
         }
215 215
         if (!empty($fieldWizardHtml)) {
216 216
             $expansionHtml[] = '<div class="form-wizards-items-bottom">';
217 217
             $expansionHtml[] = $fieldWizardHtml;
218 218
             $expansionHtml[] = '</div>';
219 219
         }
220
-        $expansionHtml[] =  '</div>';
220
+        $expansionHtml[] = '</div>';
221 221
         $expansionHtml[] = '</div>';
222 222
         $expansionHtml = implode(LF, $expansionHtml);
223 223
 
@@ -227,11 +227,11 @@  discard block
 block discarded – undo
227 227
             $fullElement = [];
228 228
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
229 229
             $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">';
230
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
231
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
232
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
233
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
234
-            $fullElement[] =     '</label>';
230
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
231
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
232
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
233
+            $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
234
+            $fullElement[] = '</label>';
235 235
             $fullElement[] = '</div>';
236 236
             $fullElement[] = $expansionHtml;
237 237
             $fullElement = implode(LF, $fullElement);
@@ -260,19 +260,19 @@  discard block
 block discarded – undo
260 260
             }
261 261
             $fullElement = [];
262 262
             $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">';
263
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
264
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
265
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
266
-            $fullElement[] =         $overrideLabel;
267
-            $fullElement[] =     '</label>';
263
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
264
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
265
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
266
+            $fullElement[] = $overrideLabel;
267
+            $fullElement[] = '</label>';
268 268
             $fullElement[] = '</div>';
269 269
             $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">';
270
-            $fullElement[] =    '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
271
-            $fullElement[] =        '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
272
-            $fullElement[] =    '</div>';
270
+            $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
271
+            $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
272
+            $fullElement[] = '</div>';
273 273
             $fullElement[] = '</div>';
274 274
             $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">';
275
-            $fullElement[] =    $expansionHtml;
275
+            $fullElement[] = $expansionHtml;
276 276
             $fullElement[] = '</div>';
277 277
             $fullElement = implode(LF, $fullElement);
278 278
         }
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Element/InputTextElement.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -104,14 +104,14 @@  discard block
 block discarded – undo
104 104
 
105 105
             $html = [];
106 106
             $html[] = '<div class="formengine-field-item t3js-formengine-field-item">';
107
-            $html[] =   $fieldInformationHtml;
108
-            $html[] =   '<div class="form-wizards-wrap">';
109
-            $html[] =       '<div class="form-wizards-element">';
110
-            $html[] =           '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
111
-            $html[] =               '<input ' . GeneralUtility::implodeAttributes($disabledFieldAttributes, true) . ' disabled>';
112
-            $html[] =           '</div>';
113
-            $html[] =       '</div>';
114
-            $html[] =   '</div>';
107
+            $html[] = $fieldInformationHtml;
108
+            $html[] = '<div class="form-wizards-wrap">';
109
+            $html[] = '<div class="form-wizards-element">';
110
+            $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
111
+            $html[] = '<input ' . GeneralUtility::implodeAttributes($disabledFieldAttributes, true) . ' disabled>';
112
+            $html[] = '</div>';
113
+            $html[] = '</div>';
114
+            $html[] = '</div>';
115 115
             $html[] = '</div>';
116 116
             $resultArray['html'] = implode(LF, $html);
117 117
             return $resultArray;
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
                     . '.value=this.options[this.selectedIndex].value';
186 186
             }
187 187
             $valuePickerHtml[] = '<select';
188
-            $valuePickerHtml[] =  ' class="form-select form-control-adapt"';
189
-            $valuePickerHtml[] =  ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"';
188
+            $valuePickerHtml[] = ' class="form-select form-control-adapt"';
189
+            $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"';
190 190
             $valuePickerHtml[] = '>';
191 191
             $valuePickerHtml[] = '<option></option>';
192 192
             foreach ($config['valuePicker']['items'] as $item) {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                 $valueType = 'double';
214 214
                 $itemValue = (double)$itemValue;
215 215
             }
216
-            $callbackParams = [ $table, $row['uid'], $fieldName, $parameterArray['itemFormElName'] ];
216
+            $callbackParams = [$table, $row['uid'], $fieldName, $parameterArray['itemFormElName']];
217 217
             $rangeAttributes = [
218 218
                 'id' => $id,
219 219
                 'type' => 'range',
@@ -258,26 +258,26 @@  discard block
 block discarded – undo
258 258
 
259 259
         $mainFieldHtml = [];
260 260
         $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
261
-        $mainFieldHtml[] =  '<div class="form-wizards-wrap">';
262
-        $mainFieldHtml[] =      '<div class="form-wizards-element">';
263
-        $mainFieldHtml[] =          '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
264
-        $mainFieldHtml[] =          '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
265
-        $mainFieldHtml[] =      '</div>';
261
+        $mainFieldHtml[] = '<div class="form-wizards-wrap">';
262
+        $mainFieldHtml[] = '<div class="form-wizards-element">';
263
+        $mainFieldHtml[] = '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
264
+        $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
265
+        $mainFieldHtml[] = '</div>';
266 266
         if (!empty($valuePickerHtml) || !empty($valueSliderHtml) || !empty($fieldControlHtml)) {
267
-            $mainFieldHtml[] =      '<div class="form-wizards-items-aside">';
268
-            $mainFieldHtml[] =          '<div class="btn-group">';
269
-            $mainFieldHtml[] =              implode(LF, $valuePickerHtml);
270
-            $mainFieldHtml[] =              implode(LF, $valueSliderHtml);
271
-            $mainFieldHtml[] =              $fieldControlHtml;
272
-            $mainFieldHtml[] =          '</div>';
273
-            $mainFieldHtml[] =      '</div>';
267
+            $mainFieldHtml[] = '<div class="form-wizards-items-aside">';
268
+            $mainFieldHtml[] = '<div class="btn-group">';
269
+            $mainFieldHtml[] = implode(LF, $valuePickerHtml);
270
+            $mainFieldHtml[] = implode(LF, $valueSliderHtml);
271
+            $mainFieldHtml[] = $fieldControlHtml;
272
+            $mainFieldHtml[] = '</div>';
273
+            $mainFieldHtml[] = '</div>';
274 274
         }
275 275
         if (!empty($fieldWizardHtml)) {
276 276
             $mainFieldHtml[] = '<div class="form-wizards-items-bottom">';
277 277
             $mainFieldHtml[] = $fieldWizardHtml;
278 278
             $mainFieldHtml[] = '</div>';
279 279
         }
280
-        $mainFieldHtml[] =  '</div>';
280
+        $mainFieldHtml[] = '</div>';
281 281
         $mainFieldHtml[] = '</div>';
282 282
         $mainFieldHtml = implode(LF, $mainFieldHtml);
283 283
 
@@ -287,11 +287,11 @@  discard block
 block discarded – undo
287 287
             $fullElement = [];
288 288
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
289 289
             $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">';
290
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
291
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
292
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
293
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
294
-            $fullElement[] =     '</label>';
290
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
291
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
292
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
293
+            $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
294
+            $fullElement[] = '</label>';
295 295
             $fullElement[] = '</div>';
296 296
             $fullElement[] = $mainFieldHtml;
297 297
             $fullElement = implode(LF, $fullElement);
@@ -320,19 +320,19 @@  discard block
 block discarded – undo
320 320
             }
321 321
             $fullElement = [];
322 322
             $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">';
323
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
324
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
325
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
326
-            $fullElement[] =         $overrideLabel;
327
-            $fullElement[] =     '</label>';
323
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
324
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
325
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
326
+            $fullElement[] = $overrideLabel;
327
+            $fullElement[] = '</label>';
328 328
             $fullElement[] = '</div>';
329 329
             $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">';
330
-            $fullElement[] =    '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
331
-            $fullElement[] =        '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
332
-            $fullElement[] =    '</div>';
330
+            $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
331
+            $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
332
+            $fullElement[] = '</div>';
333 333
             $fullElement[] = '</div>';
334 334
             $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">';
335
-            $fullElement[] =    $mainFieldHtml;
335
+            $fullElement[] = $mainFieldHtml;
336 336
             $fullElement[] = '</div>';
337 337
             $fullElement = implode(LF, $fullElement);
338 338
         }
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
             // Early return for read only fields
114 114
             $html = [];
115 115
             $html[] = '<div class="formengine-field-item t3js-formengine-field-item">';
116
-            $html[] =   $fieldInformationHtml;
117
-            $html[] =   '<div class="form-wizards-wrap">';
118
-            $html[] =       '<div class="form-wizards-element">';
119
-            $html[] =           '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
120
-            $html[] =               '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>';
121
-            $html[] =           '</div>';
122
-            $html[] =       '</div>';
123
-            $html[] =   '</div>';
116
+            $html[] = $fieldInformationHtml;
117
+            $html[] = '<div class="form-wizards-wrap">';
118
+            $html[] = '<div class="form-wizards-element">';
119
+            $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
120
+            $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>';
121
+            $html[] = '</div>';
122
+            $html[] = '</div>';
123
+            $html[] = '</div>';
124 124
             $html[] = '</div>';
125 125
             $resultArray['html'] = implode(LF, $html);
126 126
             return $resultArray;
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
                     . '.value=this.options[this.selectedIndex].value';
196 196
             }
197 197
             $valuePickerHtml[] = '<select';
198
-            $valuePickerHtml[] =  ' class="form-select"';
199
-            $valuePickerHtml[] =  ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"';
198
+            $valuePickerHtml[] = ' class="form-select"';
199
+            $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"';
200 200
             $valuePickerHtml[] = '>';
201 201
             $valuePickerHtml[] = '<option></option>';
202 202
             foreach ($config['valuePicker']['items'] as $item) {
@@ -219,33 +219,33 @@  discard block
 block discarded – undo
219 219
 
220 220
         $expansionHtml = [];
221 221
         $expansionHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
222
-        $expansionHtml[] =  '<div class="form-wizards-wrap">';
223
-        $expansionHtml[] =      '<div class="form-wizards-element">';
224
-        $expansionHtml[] =          '<div class="input-group t3js-form-field-inputlink">';
225
-        $expansionHtml[] =              '<span class="t3js-form-field-inputlink-icon input-group-addon">' . $linkExplanation['icon'] . '</span>';
226
-        $expansionHtml[] =              '<input class="form-control t3js-form-field-inputlink-explanation" data-bs-toggle="tooltip" data-title="' . $explanation . '" value="' . $explanation . '" readonly>';
227
-        $expansionHtml[] =              '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
228
-        $expansionHtml[] =              '<span class="input-group-btn">';
229
-        $expansionHtml[] =                  '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">';
230
-        $expansionHtml[] =                      $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render();
231
-        $expansionHtml[] =                  '</button>';
232
-        $expansionHtml[] =              '</span>';
233
-        $expansionHtml[] =              '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
234
-        $expansionHtml[] =          '</div>';
235
-        $expansionHtml[] =      '</div>';
222
+        $expansionHtml[] = '<div class="form-wizards-wrap">';
223
+        $expansionHtml[] = '<div class="form-wizards-element">';
224
+        $expansionHtml[] = '<div class="input-group t3js-form-field-inputlink">';
225
+        $expansionHtml[] = '<span class="t3js-form-field-inputlink-icon input-group-addon">' . $linkExplanation['icon'] . '</span>';
226
+        $expansionHtml[] = '<input class="form-control t3js-form-field-inputlink-explanation" data-bs-toggle="tooltip" data-title="' . $explanation . '" value="' . $explanation . '" readonly>';
227
+        $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
228
+        $expansionHtml[] = '<span class="input-group-btn">';
229
+        $expansionHtml[] = '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">';
230
+        $expansionHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render();
231
+        $expansionHtml[] = '</button>';
232
+        $expansionHtml[] = '</span>';
233
+        $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
234
+        $expansionHtml[] = '</div>';
235
+        $expansionHtml[] = '</div>';
236 236
         if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) {
237
-            $expansionHtml[] =      '<div class="form-wizards-items-aside">';
238
-            $expansionHtml[] =          '<div class="btn-group">';
239
-            $expansionHtml[] =              implode(LF, $valuePickerHtml);
240
-            $expansionHtml[] =              $fieldControlHtml;
241
-            $expansionHtml[] =          '</div>';
242
-            $expansionHtml[] =      '</div>';
237
+            $expansionHtml[] = '<div class="form-wizards-items-aside">';
238
+            $expansionHtml[] = '<div class="btn-group">';
239
+            $expansionHtml[] = implode(LF, $valuePickerHtml);
240
+            $expansionHtml[] = $fieldControlHtml;
241
+            $expansionHtml[] = '</div>';
242
+            $expansionHtml[] = '</div>';
243 243
         }
244
-        $expansionHtml[] =      '<div class="form-wizards-items-bottom">';
245
-        $expansionHtml[] =          $linkExplanation['additionalAttributes'];
246
-        $expansionHtml[] =          $fieldWizardHtml;
247
-        $expansionHtml[] =      '</div>';
248
-        $expansionHtml[] =  '</div>';
244
+        $expansionHtml[] = '<div class="form-wizards-items-bottom">';
245
+        $expansionHtml[] = $linkExplanation['additionalAttributes'];
246
+        $expansionHtml[] = $fieldWizardHtml;
247
+        $expansionHtml[] = '</div>';
248
+        $expansionHtml[] = '</div>';
249 249
         $expansionHtml[] = '</div>';
250 250
         $expansionHtml = implode(LF, $expansionHtml);
251 251
 
@@ -255,11 +255,11 @@  discard block
 block discarded – undo
255 255
             $fullElement = [];
256 256
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
257 257
             $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">';
258
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
259
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
260
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
261
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
262
-            $fullElement[] =     '</label>';
258
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
259
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
260
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
261
+            $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
262
+            $fullElement[] = '</label>';
263 263
             $fullElement[] = '</div>';
264 264
             $fullElement[] = $expansionHtml;
265 265
             $fullElement = implode(LF, $fullElement);
@@ -288,19 +288,19 @@  discard block
 block discarded – undo
288 288
             }
289 289
             $fullElement = [];
290 290
             $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">';
291
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
292
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
293
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
294
-            $fullElement[] =         $overrideLabel;
295
-            $fullElement[] =     '</label>';
291
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
292
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
293
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
294
+            $fullElement[] = $overrideLabel;
295
+            $fullElement[] = '</label>';
296 296
             $fullElement[] = '</div>';
297 297
             $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">';
298
-            $fullElement[] =    '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
299
-            $fullElement[] =        '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
300
-            $fullElement[] =    '</div>';
298
+            $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
299
+            $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
300
+            $fullElement[] = '</div>';
301 301
             $fullElement[] = '</div>';
302 302
             $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">';
303
-            $fullElement[] =    $expansionHtml;
303
+            $fullElement[] = $expansionHtml;
304 304
             $fullElement[] = '</div>';
305 305
             $fullElement = implode(LF, $fullElement);
306 306
         }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
         try {
332 332
             $linkData = $linkService->resolve($linkParts['url']);
333
-        } catch (FileDoesNotExistException|FolderDoesNotExistException|UnknownLinkHandlerException|InvalidPathException $e) {
333
+        } catch (FileDoesNotExistException | FolderDoesNotExistException | UnknownLinkHandlerException | InvalidPathException $e) {
334 334
             return $data;
335 335
         }
336 336
 
Please login to merge, or discard this patch.
sysext/backend/Classes/Form/Element/UserSysFileStorageIsPublicElement.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -96,27 +96,27 @@
 block discarded – undo
96 96
         $html = [];
97 97
         $html[] = '<div class="formengine-field-item t3js-formengine-field-item">';
98 98
         $html[] = $fieldInformationHtml;
99
-        $html[] =   '<div class="form-wizards-wrap">';
100
-        $html[] =       '<div class="form-wizards-element">';
101
-        $html[] =           '<div class="form-check form-switch">';
102
-        $html[] =               '<input type="checkbox"';
103
-        $html[] =                   ' class="form-check-input"';
104
-        $html[] =                   ' value="1"';
105
-        $html[] =                   ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"';
106
-        $html[] =                   ' id="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '"';
107
-        $html[] =                   $checkboxParameters;
108
-        $html[] =                   $isPublic ? ' checked="checked"' : '';
109
-        $html[] =               '/>';
110
-        $html[] =               '<label class="form-check-label" for="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '">';
111
-        $html[] =                   '<span class="form-check-label-text">' . $this->appendValueToLabelInDebugMode('&nbsp;', $isPublicAsString) . '</span>';
112
-        $html[] =               '</label>';
113
-        $html[] =               '<input type="hidden"';
114
-        $html[] =                   ' name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"';
115
-        $html[] =                   ' value="' . $isPublicAsString . '"';
116
-        $html[] =               ' />';
117
-        $html[] =           '</div>';
118
-        $html[] =       '</div>';
119
-        $html[] =   '</div>';
99
+        $html[] = '<div class="form-wizards-wrap">';
100
+        $html[] = '<div class="form-wizards-element">';
101
+        $html[] = '<div class="form-check form-switch">';
102
+        $html[] = '<input type="checkbox"';
103
+        $html[] = ' class="form-check-input"';
104
+        $html[] = ' value="1"';
105
+        $html[] = ' data-formengine-input-name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"';
106
+        $html[] = ' id="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '"';
107
+        $html[] = $checkboxParameters;
108
+        $html[] = $isPublic ? ' checked="checked"' : '';
109
+        $html[] = '/>';
110
+        $html[] = '<label class="form-check-label" for="' . htmlspecialchars($checkboxId, ENT_QUOTES) . '">';
111
+        $html[] = '<span class="form-check-label-text">' . $this->appendValueToLabelInDebugMode('&nbsp;', $isPublicAsString) . '</span>';
112
+        $html[] = '</label>';
113
+        $html[] = '<input type="hidden"';
114
+        $html[] = ' name="' . htmlspecialchars($parameterArray['itemFormElName'], ENT_QUOTES) . '"';
115
+        $html[] = ' value="' . $isPublicAsString . '"';
116
+        $html[] = ' />';
117
+        $html[] = '</div>';
118
+        $html[] = '</div>';
119
+        $html[] = '</div>';
120 120
         $html[] = '</div>';
121 121
         $resultArray['html'] = implode(LF, $html);
122 122
         return $resultArray;
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Element/TextElement.php 1 patch
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -113,16 +113,16 @@  discard block
 block discarded – undo
113 113
         if ($config['readOnly']) {
114 114
             $html = [];
115 115
             $html[] = '<div class="formengine-field-item t3js-formengine-field-item">';
116
-            $html[] =   $fieldInformationHtml;
117
-            $html[] =   '<div class="form-wizards-wrap">';
118
-            $html[] =       '<div class="form-wizards-element">';
119
-            $html[] =           '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
120
-            $html[] =               '<textarea class="form-control" rows="' . $rows . '" disabled>';
121
-            $html[] =                   htmlspecialchars($itemValue);
122
-            $html[] =               '</textarea>';
123
-            $html[] =           '</div>';
124
-            $html[] =       '</div>';
125
-            $html[] =   '</div>';
116
+            $html[] = $fieldInformationHtml;
117
+            $html[] = '<div class="form-wizards-wrap">';
118
+            $html[] = '<div class="form-wizards-element">';
119
+            $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
120
+            $html[] = '<textarea class="form-control" rows="' . $rows . '" disabled>';
121
+            $html[] = htmlspecialchars($itemValue);
122
+            $html[] = '</textarea>';
123
+            $html[] = '</div>';
124
+            $html[] = '</div>';
125
+            $html[] = '</div>';
126 126
             $html[] = '</div>';
127 127
             $resultArray['html'] = implode(LF, $html);
128 128
             return $resultArray;
@@ -198,8 +198,8 @@  discard block
 block discarded – undo
198 198
                     . '.value=this.options[this.selectedIndex].value';
199 199
             }
200 200
             $valuePickerHtml[] = '<select';
201
-            $valuePickerHtml[] =  ' class="form-select form-control-adapt"';
202
-            $valuePickerHtml[] =  ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"';
201
+            $valuePickerHtml[] = ' class="form-select form-control-adapt"';
202
+            $valuePickerHtml[] = ' onchange="' . htmlspecialchars($assignValue . ';this.blur();this.selectedIndex=0;' . implode('', $fieldChangeFunc)) . '"';
203 203
             $valuePickerHtml[] = '>';
204 204
             $valuePickerHtml[] = '<option></option>';
205 205
             foreach ($config['valuePicker']['items'] as $item) {
@@ -218,24 +218,24 @@  discard block
 block discarded – undo
218 218
 
219 219
         $mainFieldHtml = [];
220 220
         $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
221
-        $mainFieldHtml[] =  '<div class="form-wizards-wrap">';
222
-        $mainFieldHtml[] =      '<div class="form-wizards-element">';
223
-        $mainFieldHtml[] =          '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>';
224
-        $mainFieldHtml[] =      '</div>';
221
+        $mainFieldHtml[] = '<div class="form-wizards-wrap">';
222
+        $mainFieldHtml[] = '<div class="form-wizards-element">';
223
+        $mainFieldHtml[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>';
224
+        $mainFieldHtml[] = '</div>';
225 225
         if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) {
226
-            $mainFieldHtml[] =      '<div class="form-wizards-items-aside">';
227
-            $mainFieldHtml[] =          '<div class="btn-group">';
228
-            $mainFieldHtml[] =              implode(LF, $valuePickerHtml);
229
-            $mainFieldHtml[] =              $fieldControlHtml;
230
-            $mainFieldHtml[] =          '</div>';
231
-            $mainFieldHtml[] =      '</div>';
226
+            $mainFieldHtml[] = '<div class="form-wizards-items-aside">';
227
+            $mainFieldHtml[] = '<div class="btn-group">';
228
+            $mainFieldHtml[] = implode(LF, $valuePickerHtml);
229
+            $mainFieldHtml[] = $fieldControlHtml;
230
+            $mainFieldHtml[] = '</div>';
231
+            $mainFieldHtml[] = '</div>';
232 232
         }
233 233
         if (!empty($fieldWizardHtml)) {
234 234
             $mainFieldHtml[] = '<div class="form-wizards-items-bottom">';
235 235
             $mainFieldHtml[] = $fieldWizardHtml;
236 236
             $mainFieldHtml[] = '</div>';
237 237
         }
238
-        $mainFieldHtml[] =  '</div>';
238
+        $mainFieldHtml[] = '</div>';
239 239
         $mainFieldHtml[] = '</div>';
240 240
         $mainFieldHtml = implode(LF, $mainFieldHtml);
241 241
 
@@ -245,11 +245,11 @@  discard block
 block discarded – undo
245 245
             $fullElement = [];
246 246
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
247 247
             $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">';
248
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
249
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
250
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
251
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
252
-            $fullElement[] =     '</label>';
248
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
249
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
250
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
251
+            $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
252
+            $fullElement[] = '</label>';
253 253
             $fullElement[] = '</div>';
254 254
             $fullElement[] = $mainFieldHtml;
255 255
             $fullElement = implode(LF, $fullElement);
@@ -278,28 +278,28 @@  discard block
 block discarded – undo
278 278
             }
279 279
             $fullElement = [];
280 280
             $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">';
281
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
282
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
283
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
284
-            $fullElement[] =         $overrideLabel;
285
-            $fullElement[] =     '</label>';
281
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
282
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
283
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
284
+            $fullElement[] = $overrideLabel;
285
+            $fullElement[] = '</label>';
286 286
             $fullElement[] = '</div>';
287 287
             $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">';
288
-            $fullElement[] =    '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
289
-            $fullElement[] =        '<textarea';
290
-            $fullElement[] =            ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace'  : '') . '"';
291
-            $fullElement[] =            ' disabled="disabled"';
292
-            $fullElement[] =            ' rows="' . htmlspecialchars($attributes['rows']) . '"';
293
-            $fullElement[] =            ' wrap="' . htmlspecialchars($attributes['wrap']) . '"';
294
-            $fullElement[] =            isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : '';
295
-            $fullElement[] =            isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : '';
296
-            $fullElement[] =        '>';
297
-            $fullElement[] =            htmlspecialchars($shortenedPlaceholder);
298
-            $fullElement[] =        '</textarea>';
299
-            $fullElement[] =    '</div>';
288
+            $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
289
+            $fullElement[] = '<textarea';
290
+            $fullElement[] = ' class="form-control formengine-textarea' . (isset($config['fixedFont']) ? ' text-monospace' : '') . '"';
291
+            $fullElement[] = ' disabled="disabled"';
292
+            $fullElement[] = ' rows="' . htmlspecialchars($attributes['rows']) . '"';
293
+            $fullElement[] = ' wrap="' . htmlspecialchars($attributes['wrap']) . '"';
294
+            $fullElement[] = isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : '';
295
+            $fullElement[] = isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : '';
296
+            $fullElement[] = '>';
297
+            $fullElement[] = htmlspecialchars($shortenedPlaceholder);
298
+            $fullElement[] = '</textarea>';
299
+            $fullElement[] = '</div>';
300 300
             $fullElement[] = '</div>';
301 301
             $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">';
302
-            $fullElement[] =    $mainFieldHtml;
302
+            $fullElement[] = $mainFieldHtml;
303 303
             $fullElement[] = '</div>';
304 304
             $fullElement = implode(LF, $fullElement);
305 305
         }
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Element/InputColorPickerElement.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -89,14 +89,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
204 204
             $fullElement = [];
205 205
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
206 206
             $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">';
207
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
208
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
209
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
210
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
211
-            $fullElement[] =     '</label>';
207
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
208
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
209
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
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
 block discarded – undo
237 237
             }
238 238
             $fullElement = [];
239 239
             $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">';
240
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
241
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
242
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
243
-            $fullElement[] =         $overrideLabel;
244
-            $fullElement[] =     '</label>';
240
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
241
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
242
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
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
         }
Please login to merge, or discard this patch.