Passed
Push — master ( a85bac...563788 )
by
unknown
33:14 queued 20:02
created
typo3/sysext/backend/Classes/Form/Element/InputTextElement.php 1 patch
Spacing   +37 added lines, -37 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) {
@@ -256,26 +256,26 @@  discard block
 block discarded – undo
256 256
 
257 257
         $mainFieldHtml = [];
258 258
         $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
259
-        $mainFieldHtml[] =  '<div class="form-wizards-wrap">';
260
-        $mainFieldHtml[] =      '<div class="form-wizards-element">';
261
-        $mainFieldHtml[] =          '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
262
-        $mainFieldHtml[] =          '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
263
-        $mainFieldHtml[] =      '</div>';
259
+        $mainFieldHtml[] = '<div class="form-wizards-wrap">';
260
+        $mainFieldHtml[] = '<div class="form-wizards-element">';
261
+        $mainFieldHtml[] = '<input type="' . $inputType . '" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
262
+        $mainFieldHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
263
+        $mainFieldHtml[] = '</div>';
264 264
         if (!empty($valuePickerHtml) || !empty($valueSliderHtml) || !empty($fieldControlHtml)) {
265
-            $mainFieldHtml[] =      '<div class="form-wizards-items-aside">';
266
-            $mainFieldHtml[] =          '<div class="btn-group">';
267
-            $mainFieldHtml[] =              implode(LF, $valuePickerHtml);
268
-            $mainFieldHtml[] =              implode(LF, $valueSliderHtml);
269
-            $mainFieldHtml[] =              $fieldControlHtml;
270
-            $mainFieldHtml[] =          '</div>';
271
-            $mainFieldHtml[] =      '</div>';
265
+            $mainFieldHtml[] = '<div class="form-wizards-items-aside">';
266
+            $mainFieldHtml[] = '<div class="btn-group">';
267
+            $mainFieldHtml[] = implode(LF, $valuePickerHtml);
268
+            $mainFieldHtml[] = implode(LF, $valueSliderHtml);
269
+            $mainFieldHtml[] = $fieldControlHtml;
270
+            $mainFieldHtml[] = '</div>';
271
+            $mainFieldHtml[] = '</div>';
272 272
         }
273 273
         if (!empty($fieldWizardHtml)) {
274 274
             $mainFieldHtml[] = '<div class="form-wizards-items-bottom">';
275 275
             $mainFieldHtml[] = $fieldWizardHtml;
276 276
             $mainFieldHtml[] = '</div>';
277 277
         }
278
-        $mainFieldHtml[] =  '</div>';
278
+        $mainFieldHtml[] = '</div>';
279 279
         $mainFieldHtml[] = '</div>';
280 280
         $mainFieldHtml = implode(LF, $mainFieldHtml);
281 281
 
@@ -285,11 +285,11 @@  discard block
 block discarded – undo
285 285
             $fullElement = [];
286 286
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
287 287
             $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">';
288
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
289
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
290
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
291
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
292
-            $fullElement[] =     '</label>';
288
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
289
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
290
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
291
+            $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
292
+            $fullElement[] = '</label>';
293 293
             $fullElement[] = '</div>';
294 294
             $fullElement[] = $mainFieldHtml;
295 295
             $fullElement = implode(LF, $fullElement);
@@ -318,19 +318,19 @@  discard block
 block discarded – undo
318 318
             }
319 319
             $fullElement = [];
320 320
             $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">';
321
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
322
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
323
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
324
-            $fullElement[] =         $overrideLabel;
325
-            $fullElement[] =     '</label>';
321
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
322
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
323
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
324
+            $fullElement[] = $overrideLabel;
325
+            $fullElement[] = '</label>';
326 326
             $fullElement[] = '</div>';
327 327
             $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">';
328
-            $fullElement[] =    '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
329
-            $fullElement[] =        '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
330
-            $fullElement[] =    '</div>';
328
+            $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
329
+            $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
330
+            $fullElement[] = '</div>';
331 331
             $fullElement[] = '</div>';
332 332
             $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">';
333
-            $fullElement[] =    $mainFieldHtml;
333
+            $fullElement[] = $mainFieldHtml;
334 334
             $fullElement[] = '</div>';
335 335
             $fullElement = implode(LF, $fullElement);
336 336
         }
Please login to merge, or discard this patch.