Passed
Push — master ( 933edc...f61bbf )
by
unknown
15:51
created
typo3/sysext/backend/Classes/Form/Element/SelectCheckBoxElement.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
 
165 165
             $html[] = '<div class="formengine-field-item t3js-formengine-field-item" data-formengine-validation-rules="' . htmlspecialchars($this->getValidationDataAsJsonString($config)) . '">';
166 166
             $html[] = $fieldInformationHtml;
167
-            $html[] =   '<div class="form-wizards-wrap">';
168
-            $html[] =       '<div class="form-wizards-element">';
167
+            $html[] = '<div class="form-wizards-wrap">';
168
+            $html[] = '<div class="form-wizards-element">';
169 169
 
170 170
             // Add an empty hidden field which will send a blank value if all items are unselected.
171 171
             $html[] = '<input type="hidden" class="select-checkbox" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">';
@@ -189,22 +189,22 @@  discard block
 block discarded – undo
189 189
                     // Render rows
190 190
                     foreach ($group['items'] as $item) {
191 191
                         $tableRows[] = '<tr class="' . $item['class'] . '">';
192
-                        $tableRows[] =    '<td class="col-checkbox">';
193
-                        $tableRows[] =        '<input type="checkbox" class="t3js-checkbox" '
192
+                        $tableRows[] = '<td class="col-checkbox">';
193
+                        $tableRows[] = '<input type="checkbox" class="t3js-checkbox" '
194 194
                                             . 'id="' . $item['id'] . '" '
195 195
                                             . 'name="' . htmlspecialchars($item['name']) . '" '
196 196
                                             . 'value="' . htmlspecialchars($item['value']) . '" '
197 197
                                             . 'onclick="' . htmlspecialchars($sOnChange) . '" '
198 198
                                             . ($item['checked'] ? 'checked=checked ' : '')
199 199
                                             . ($item['disabled'] ? 'disabled=disabled ' : '') . '>';
200
-                        $tableRows[] =    '</td>';
201
-                        $tableRows[] =    '<td class="col-title">';
202
-                        $tableRows[] =        '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">';
203
-                        $tableRows[] =            '<span class="inline-icon">' . $item['icon'] . '</span>';
204
-                        $tableRows[] =            htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false);
205
-                        $tableRows[] =        '</label>';
206
-                        $tableRows[] =    '</td>';
207
-                        $tableRows[] =    '<td class="text-right">' . $item['help'] . '</td>';
200
+                        $tableRows[] = '</td>';
201
+                        $tableRows[] = '<td class="col-title">';
202
+                        $tableRows[] = '<label class="label-block nowrap-disabled" for="' . $item['id'] . '">';
203
+                        $tableRows[] = '<span class="inline-icon">' . $item['icon'] . '</span>';
204
+                        $tableRows[] = htmlspecialchars($this->appendValueToLabelInDebugMode($item['title'], $item['value']), ENT_COMPAT, 'UTF-8', false);
205
+                        $tableRows[] = '</label>';
206
+                        $tableRows[] = '</td>';
207
+                        $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>';
208 208
                         $tableRows[] = '</tr>';
209 209
                     }
210 210
 
@@ -226,20 +226,20 @@  discard block
 block discarded – undo
226 226
                     }
227 227
                     $checkboxId = StringUtility::getUniqueId($groupId);
228 228
                     $title = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall'));
229
-                    $html[] =    '<div class="table-responsive">';
230
-                    $html[] =        '<table class="table table-transparent table-hover">';
231
-                    $html[] =            '<thead>';
232
-                    $html[] =                '<tr>';
233
-                    $html[] =                    '<th class="col-checkbox">';
234
-                    $html[] =                       '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-bs-trigger="hover" data-bs-placement="right" title="' . $title . '" data-bs-toggle="tooltip" />';
235
-                    $html[] =                    '</th>';
236
-                    $html[] =                    '<th class="col-title"><label for="' . $checkboxId . '">' . $title . '</label></th>';
237
-                    $html[] =                    '<th class="text-right">' . $resetGroupBtn . '</th>';
238
-                    $html[] =                '</tr>';
239
-                    $html[] =            '</thead>';
240
-                    $html[] =            '<tbody>' . implode(LF, $tableRows) . '</tbody>';
241
-                    $html[] =        '</table>';
242
-                    $html[] =    '</div>';
229
+                    $html[] = '<div class="table-responsive">';
230
+                    $html[] = '<table class="table table-transparent table-hover">';
231
+                    $html[] = '<thead>';
232
+                    $html[] = '<tr>';
233
+                    $html[] = '<th class="col-checkbox">';
234
+                    $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-bs-trigger="hover" data-bs-placement="right" title="' . $title . '" data-bs-toggle="tooltip" />';
235
+                    $html[] = '</th>';
236
+                    $html[] = '<th class="col-title"><label for="' . $checkboxId . '">' . $title . '</label></th>';
237
+                    $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>';
238
+                    $html[] = '</tr>';
239
+                    $html[] = '</thead>';
240
+                    $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>';
241
+                    $html[] = '</table>';
242
+                    $html[] = '</div>';
243 243
                     if (is_array($group['header'])) {
244 244
                         $html[] = '</div>';
245 245
                     }
@@ -253,13 +253,13 @@  discard block
 block discarded – undo
253 253
                 $html[] = '</div>';
254 254
             }
255 255
 
256
-            $html[] =       '</div>';
256
+            $html[] = '</div>';
257 257
             if (!$disabled && !empty($fieldWizardHtml)) {
258
-                $html[] =   '<div class="form-wizards-items-bottom">';
259
-                $html[] =       $fieldWizardHtml;
260
-                $html[] =   '</div>';
258
+                $html[] = '<div class="form-wizards-items-bottom">';
259
+                $html[] = $fieldWizardHtml;
260
+                $html[] = '</div>';
261 261
             }
262
-            $html[] =   '</div>';
262
+            $html[] = '</div>';
263 263
             $html[] = '</div>';
264 264
         }
265 265
 
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Element/MfaInfoElement.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
                 $childHtml[] = '<ul class="list-group t3js-mfa-active-providers-list">';
115 115
                 foreach ($activeProviders as $identifier => $activeProvider) {
116 116
                     $childHtml[] = '<li class="list-group-item" id="provider-' . htmlspecialchars((string)$identifier) . '" style="line-height: 2.1em;">';
117
-                    $childHtml[] =  $this->iconFactory->getIcon($activeProvider->getIconIdentifier(), Icon::SIZE_SMALL);
118
-                    $childHtml[] =  htmlspecialchars($lang->sL($activeProvider->getTitle()));
117
+                    $childHtml[] = $this->iconFactory->getIcon($activeProvider->getIconIdentifier(), Icon::SIZE_SMALL);
118
+                    $childHtml[] = htmlspecialchars($lang->sL($activeProvider->getTitle()));
119 119
                     if (in_array($identifier, $lockedProviders, true)) {
120 120
                         $childHtml[] = '<span class="label label-danger">' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.locked')) . '</span>';
121 121
                     } else {
@@ -123,15 +123,15 @@  discard block
 block discarded – undo
123 123
                     }
124 124
                     if ($isDeactivationAllowed) {
125 125
                         $childHtml[] = '<button type="button"';
126
-                        $childHtml[] =  ' class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"';
127
-                        $childHtml[] =  ' data-confirmation-title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"';
128
-                        $childHtml[] =  ' data-confirmation-content="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider.confirmation.text'), $lang->sL($activeProvider->getTitle()))) . '"';
129
-                        $childHtml[] =  ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"';
130
-                        $childHtml[] =  ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"';
131
-                        $childHtml[] =  ' data-provider="' . htmlspecialchars((string)$identifier) . '"';
132
-                        $childHtml[] =  ' title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"';
133
-                        $childHtml[] =  '>';
134
-                        $childHtml[] =      $this->iconFactory->getIcon('actions-delete', Icon::SIZE_SMALL)->render('inline');
126
+                        $childHtml[] = ' class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"';
127
+                        $childHtml[] = ' data-confirmation-title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"';
128
+                        $childHtml[] = ' data-confirmation-content="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider.confirmation.text'), $lang->sL($activeProvider->getTitle()))) . '"';
129
+                        $childHtml[] = ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"';
130
+                        $childHtml[] = ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"';
131
+                        $childHtml[] = ' data-provider="' . htmlspecialchars((string)$identifier) . '"';
132
+                        $childHtml[] = ' title="' . htmlspecialchars(sprintf($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfaProvider'), $lang->sL($activeProvider->getTitle()))) . '"';
133
+                        $childHtml[] = '>';
134
+                        $childHtml[] = $this->iconFactory->getIcon('actions-delete', Icon::SIZE_SMALL)->render('inline');
135 135
                         $childHtml[] = '</button>';
136 136
                     }
137 137
                     $childHtml[] = '</li>';
@@ -143,29 +143,29 @@  discard block
 block discarded – undo
143 143
         $fieldId = 't3js-form-field-mfa-id' . StringUtility::getUniqueId('-');
144 144
 
145 145
         $html[] = '<div class="formengine-field-item t3js-formengine-field-item" id="' . htmlspecialchars($fieldId) . '">';
146
-        $html[] =   '<div class="form-control-wrap" style="max-width: ' . (int)$this->formMaxWidth($this->defaultInputWidth) . 'px">';
147
-        $html[] =       '<div class="form-wizards-wrap">';
148
-        $html[] =           '<div class="form-wizards-element">';
149
-        $html[] =               implode(PHP_EOL, $childHtml);
146
+        $html[] = '<div class="form-control-wrap" style="max-width: ' . (int)$this->formMaxWidth($this->defaultInputWidth) . 'px">';
147
+        $html[] = '<div class="form-wizards-wrap">';
148
+        $html[] = '<div class="form-wizards-element">';
149
+        $html[] = implode(PHP_EOL, $childHtml);
150 150
         if ($isDeactivationAllowed) {
151 151
             $html[] = '<div class="form-wizards-items-bottom">';
152
-            $html[] =   '<div class="help-block">';
153
-            $html[] =       '<button type="button"';
154
-            $html[] =           ' class="t3js-deactivate-mfa-button btn btn-danger ' . ($activeProviders === [] ? 'disabled" disabled="disabled' : '') . '"';
155
-            $html[] =           ' data-confirmation-title="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa')) . '"';
156
-            $html[] =           ' data-confirmation-content="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa.confirmation.text')) . '"';
157
-            $html[] =           ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"';
158
-            $html[] =           ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"';
159
-            $html[] =       '>';
160
-            $html[] =           $this->iconFactory->getIcon('actions-toggle-off', Icon::SIZE_SMALL)->render('inline');
161
-            $html[] =           htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa'));
162
-            $html[] =       '</button>';
163
-            $html[] =   '</div>';
152
+            $html[] = '<div class="help-block">';
153
+            $html[] = '<button type="button"';
154
+            $html[] = ' class="t3js-deactivate-mfa-button btn btn-danger ' . ($activeProviders === [] ? 'disabled" disabled="disabled' : '') . '"';
155
+            $html[] = ' data-confirmation-title="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa')) . '"';
156
+            $html[] = ' data-confirmation-content="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa.confirmation.text')) . '"';
157
+            $html[] = ' data-confirmation-cancel-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.cancel')) . '"';
158
+            $html[] = ' data-confirmation-deactivate-text="' . htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.deactivate')) . '"';
159
+            $html[] = '>';
160
+            $html[] = $this->iconFactory->getIcon('actions-toggle-off', Icon::SIZE_SMALL)->render('inline');
161
+            $html[] = htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:buttons.deactivateMfa'));
162
+            $html[] = '</button>';
163
+            $html[] = '</div>';
164 164
             $html[] = '</div>';
165 165
         }
166
-        $html[] =           '</div>';
167
-        $html[] =       '</div>';
168
-        $html[] =   '</div>';
166
+        $html[] = '</div>';
167
+        $html[] = '</div>';
168
+        $html[] = '</div>';
169 169
         $html[] = '</div>';
170 170
 
171 171
         // JavaScript is not needed in case deactivation is not allowed or no active providers exist
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Controller/Page/LocalizationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         }
114 114
         // Language "All" should not appear as a source of translations (see bug 92757) and keys should be sequential
115 115
         $availableLanguages = array_values(
116
-            array_filter($availableLanguages, function (array $languageRecord): bool {
116
+            array_filter($availableLanguages, function(array $languageRecord): bool {
117 117
                 return (int)$languageRecord['uid'] !== -1;
118 118
             })
119 119
         );
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/View/BackendLayout/ContentFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
             $untranslatedRecordUids = array_flip(
160 160
                 array_column(
161 161
                     // Eliminate records with "-1" as sys_language_uid since they can not be translated
162
-                    array_filter($contentRecordsInDefaultLanguage, static function (array $record): bool {
162
+                    array_filter($contentRecordsInDefaultLanguage, static function(array $record): bool {
163 163
                         return (int)($record['sys_language_uid'] ?? 0) !== -1;
164 164
                     }),
165 165
                     'uid'
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
         return ArrayUtility::keepItemsInArray(
404 404
             $items,
405 405
             $result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'],
406
-            function ($value) {
406
+            function($value) {
407 407
                 return $value[1];
408 408
             }
409 409
         );
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
         }
552 552
 
553 553
         $allowedStorageIds = array_map(
554
-            function (ResourceStorage $storage) {
554
+            function(ResourceStorage $storage) {
555 555
                 return $storage->getUid();
556 556
             },
557 557
             $this->getBackendUser()->getFileStorages()
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 
560 560
         return array_filter(
561 561
             $items,
562
-            function (array $item) use ($allowedStorageIds) {
562
+            function(array $item) use ($allowedStorageIds) {
563 563
                 $itemValue = $item[1] ?? null;
564 564
                 return empty($itemValue)
565 565
                     || in_array((int)$itemValue, $allowedStorageIds, true);
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Hooks/TcaItemsProcessorFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
             }
329 329
             // Sort fields by the translated value
330 330
             if (!empty($excludeFieldGroup)) {
331
-                usort($excludeFieldGroup, static function (array $array1, array $array2) {
331
+                usort($excludeFieldGroup, static function(array $array1, array $array2) {
332 332
                     $array1 = reset($array1);
333 333
                     $array2 = reset($array2);
334 334
                     if (is_string($array1) && is_string($array2)) {
Please login to merge, or discard this patch.
typo3/sysext/lowlevel/Classes/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     public function getFactories(): array
39 39
     {
40 40
         return [
41
-            Controller\ConfigurationController::class => [ static::class, 'getConfigurationController' ],
42
-            Controller\DatabaseIntegrityController::class => [ static::class, 'getDatabaseIntegrityController' ],
41
+            Controller\ConfigurationController::class => [static::class, 'getConfigurationController'],
42
+            Controller\DatabaseIntegrityController::class => [static::class, 'getDatabaseIntegrityController'],
43 43
         ];
44 44
     }
45 45
 
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Controller/Page/TreeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
         }
140 140
         if ($request->getQueryParams()['alternativeEntryPoints'] ?? false) {
141 141
             $this->alternativeEntryPoints = $request->getQueryParams()['alternativeEntryPoints'];
142
-            $this->alternativeEntryPoints = array_filter($this->alternativeEntryPoints, function ($pageId) {
142
+            $this->alternativeEntryPoints = array_filter($this->alternativeEntryPoints, function($pageId) {
143 143
                 return $this->getBackendUser()->isInWebMount($pageId) !== null;
144 144
             });
145 145
             $this->alternativeEntryPoints = array_map('intval', $this->alternativeEntryPoints);
Please login to merge, or discard this patch.
typo3/sysext/recordlist/Classes/Browser/DatabaseBrowser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     public function render()
78 78
     {
79 79
         $this->modTSconfig = BackendUtility::getPagesTSconfig((int)$this->expandPage)['mod.']['web_list.'] ?? [];
80
-        [, , , $allowedTables] = explode('|', $this->bparams);
80
+        [,,, $allowedTables] = explode('|', $this->bparams);
81 81
 
82 82
         $withTree = true;
83 83
         if ($allowedTables !== '' && $allowedTables !== '*') {
Please login to merge, or discard this patch.