Passed
Push — master ( 7ccc93...712e8f )
by
unknown
14:17
created
typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php 1 patch
Spacing   +48 added lines, -48 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,31 +219,31 @@  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" title="' . $explanation . '" value="' . $explanation . '" readonly>';
227
-        $expansionHtml[] =              '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
228
-        $expansionHtml[] =              '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">';
229
-        $expansionHtml[] =                  $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render();
230
-        $expansionHtml[] =              '</button>';
231
-        $expansionHtml[] =              '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
232
-        $expansionHtml[] =          '</div>';
233
-        $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" title="' . $explanation . '" value="' . $explanation . '" readonly>';
227
+        $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
228
+        $expansionHtml[] = '<button class="btn btn-default t3js-form-field-inputlink-explanation-toggle" type="button" title="' . htmlspecialchars($toggleButtonTitle) . '">';
229
+        $expansionHtml[] = $this->iconFactory->getIcon('actions-version-workspaces-preview-link', Icon::SIZE_SMALL)->render();
230
+        $expansionHtml[] = '</button>';
231
+        $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
232
+        $expansionHtml[] = '</div>';
233
+        $expansionHtml[] = '</div>';
234 234
         if (!empty($valuePickerHtml) || !empty($fieldControlHtml)) {
235
-            $expansionHtml[] =      '<div class="form-wizards-items-aside">';
236
-            $expansionHtml[] =          '<div class="btn-group">';
237
-            $expansionHtml[] =              implode(LF, $valuePickerHtml);
238
-            $expansionHtml[] =              $fieldControlHtml;
239
-            $expansionHtml[] =          '</div>';
240
-            $expansionHtml[] =      '</div>';
235
+            $expansionHtml[] = '<div class="form-wizards-items-aside">';
236
+            $expansionHtml[] = '<div class="btn-group">';
237
+            $expansionHtml[] = implode(LF, $valuePickerHtml);
238
+            $expansionHtml[] = $fieldControlHtml;
239
+            $expansionHtml[] = '</div>';
240
+            $expansionHtml[] = '</div>';
241 241
         }
242
-        $expansionHtml[] =      '<div class="form-wizards-items-bottom">';
243
-        $expansionHtml[] =          $linkExplanation['additionalAttributes'];
244
-        $expansionHtml[] =          $fieldWizardHtml;
245
-        $expansionHtml[] =      '</div>';
246
-        $expansionHtml[] =  '</div>';
242
+        $expansionHtml[] = '<div class="form-wizards-items-bottom">';
243
+        $expansionHtml[] = $linkExplanation['additionalAttributes'];
244
+        $expansionHtml[] = $fieldWizardHtml;
245
+        $expansionHtml[] = '</div>';
246
+        $expansionHtml[] = '</div>';
247 247
         $expansionHtml[] = '</div>';
248 248
         $expansionHtml = implode(LF, $expansionHtml);
249 249
 
@@ -253,11 +253,11 @@  discard block
 block discarded – undo
253 253
             $fullElement = [];
254 254
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
255 255
             $fullElement[] = '<div class="form-check t3-form-field-eval-null-checkbox">';
256
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
257
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
258
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
259
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
260
-            $fullElement[] =     '</label>';
256
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
257
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
258
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
259
+            $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
260
+            $fullElement[] = '</label>';
261 261
             $fullElement[] = '</div>';
262 262
             $fullElement[] = $expansionHtml;
263 263
             $fullElement = implode(LF, $fullElement);
@@ -286,19 +286,19 @@  discard block
 block discarded – undo
286 286
             }
287 287
             $fullElement = [];
288 288
             $fullElement[] = '<div class="form-check t3js-form-field-eval-null-placeholder-checkbox">';
289
-            $fullElement[] =     '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
290
-            $fullElement[] =     '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
291
-            $fullElement[] =     '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
292
-            $fullElement[] =         $overrideLabel;
293
-            $fullElement[] =     '</label>';
289
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
290
+            $fullElement[] = '<input type="checkbox" class="form-check-input" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
291
+            $fullElement[] = '<label class="form-check-label" for="' . $nullControlNameEscaped . '">';
292
+            $fullElement[] = $overrideLabel;
293
+            $fullElement[] = '</label>';
294 294
             $fullElement[] = '</div>';
295 295
             $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">';
296
-            $fullElement[] =    '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
297
-            $fullElement[] =        '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
298
-            $fullElement[] =    '</div>';
296
+            $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
297
+            $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
298
+            $fullElement[] = '</div>';
299 299
             $fullElement[] = '</div>';
300 300
             $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">';
301
-            $fullElement[] =    $expansionHtml;
301
+            $fullElement[] = $expansionHtml;
302 302
             $fullElement[] = '</div>';
303 303
             $fullElement = implode(LF, $fullElement);
304 304
         }
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 
329 329
         try {
330 330
             $linkData = $linkService->resolve($linkParts['url']);
331
-        } catch (FileDoesNotExistException|FolderDoesNotExistException|UnknownLinkHandlerException|InvalidPathException $e) {
331
+        } catch (FileDoesNotExistException | FolderDoesNotExistException | UnknownLinkHandlerException | InvalidPathException $e) {
332 332
             return $data;
333 333
         }
334 334
 
Please login to merge, or discard this patch.