Passed
Push — master ( fc856a...440f74 )
by
unknown
13:36
created
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.