Passed
Push — master ( c3e4c1...768285 )
by
unknown
117:26 queued 101:27
created
typo3/sysext/backend/Classes/Form/Container/FlexFormContainerContainer.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -101,35 +101,35 @@
 block discarded – undo
101 101
 
102 102
         $html = [];
103 103
         $html[] = '<div ' . GeneralUtility::implodeAttributes($containerAttributes, true) . '>';
104
-        $html[] =    '<input class="t3js-flex-control-action" type="hidden" name="' . htmlspecialchars($actionFieldName) . '" value="" />';
105
-        $html[] =    '<div ' . GeneralUtility::implodeAttributes($panelHeaderAttributes, true) . '>';
106
-        $html[] =        '<div class="form-irre-header">';
107
-        $html[] =            '<div class="form-irre-header-cell form-irre-header-icon">';
108
-        $html[] =                '<span class="caret"></span>';
109
-        $html[] =            '</div>';
110
-        $html[] =            '<button ' . GeneralUtility::implodeAttributes($toggleAttributes, true) . '>';
111
-        $html[] =                '<div class="form-irre-header-cell form-irre-header-body">';
112
-        $html[] =                    htmlspecialchars($containerTitle);
113
-        $html[] =                    '<output class="content-preview"></output>';
114
-        $html[] =                '</div>';
115
-        $html[] =            '</button>';
116
-        $html[] =            '<div class="form-irre-header-cell form-irre-header-control t3js-formengine-irre-control">';
117
-        $html[] =                '<div class="btn-group btn-group-sm">';
118
-        $html[] =                    implode(LF, $moveAndDeleteContent);
119
-        $html[] =                '</div>';
120
-        $html[] =            '</div>';
121
-        $html[] =        '</div>';
122
-        $html[] =    '</div>';
123
-        $html[] =    '<div id="' . htmlspecialchars($flexFormDomContainerId) . '" class="collapse t3js-flex-section-content ' . ($flexFormContainerElementCollapsed ? '' : 'show') . '">';
124
-        $html[] =        $containerContentResult['html'];
125
-        $html[] =    '</div>';
126
-        $html[] =    '<input';
127
-        $html[] =        'class="t3js-flex-control-toggle"';
128
-        $html[] =        'type="hidden"';
129
-        $html[] =        'id="flexform-toggle-container-' . htmlspecialchars($flexFormContainerIdentifier) . '"';
130
-        $html[] =        'name="' . htmlspecialchars($toggleFieldName) . '"';
131
-        $html[] =        'value="' . ($flexFormContainerElementCollapsed ? '1' : '0') . '"';
132
-        $html[] =    '/>';
104
+        $html[] = '<input class="t3js-flex-control-action" type="hidden" name="' . htmlspecialchars($actionFieldName) . '" value="" />';
105
+        $html[] = '<div ' . GeneralUtility::implodeAttributes($panelHeaderAttributes, true) . '>';
106
+        $html[] = '<div class="form-irre-header">';
107
+        $html[] = '<div class="form-irre-header-cell form-irre-header-icon">';
108
+        $html[] = '<span class="caret"></span>';
109
+        $html[] = '</div>';
110
+        $html[] = '<button ' . GeneralUtility::implodeAttributes($toggleAttributes, true) . '>';
111
+        $html[] = '<div class="form-irre-header-cell form-irre-header-body">';
112
+        $html[] = htmlspecialchars($containerTitle);
113
+        $html[] = '<output class="content-preview"></output>';
114
+        $html[] = '</div>';
115
+        $html[] = '</button>';
116
+        $html[] = '<div class="form-irre-header-cell form-irre-header-control t3js-formengine-irre-control">';
117
+        $html[] = '<div class="btn-group btn-group-sm">';
118
+        $html[] = implode(LF, $moveAndDeleteContent);
119
+        $html[] = '</div>';
120
+        $html[] = '</div>';
121
+        $html[] = '</div>';
122
+        $html[] = '</div>';
123
+        $html[] = '<div id="' . htmlspecialchars($flexFormDomContainerId) . '" class="collapse t3js-flex-section-content ' . ($flexFormContainerElementCollapsed ? '' : 'show') . '">';
124
+        $html[] = $containerContentResult['html'];
125
+        $html[] = '</div>';
126
+        $html[] = '<input';
127
+        $html[] = 'class="t3js-flex-control-toggle"';
128
+        $html[] = 'type="hidden"';
129
+        $html[] = 'id="flexform-toggle-container-' . htmlspecialchars($flexFormContainerIdentifier) . '"';
130
+        $html[] = 'name="' . htmlspecialchars($toggleFieldName) . '"';
131
+        $html[] = 'value="' . ($flexFormContainerElementCollapsed ? '1' : '0') . '"';
132
+        $html[] = '/>';
133 133
         $html[] = '</div>';
134 134
 
135 135
         $resultArray['html'] = implode(LF, $html);
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Container/FlexFormSectionContainer.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -82,23 +82,23 @@  discard block
 block discarded – undo
82 82
             }
83 83
             $containerTemplateHtml = [];
84 84
             $containerTemplateHtml[] = '<a';
85
-            $containerTemplateHtml[] =     'href="#"';
86
-            $containerTemplateHtml[] =     'class="btn btn-default t3js-flex-container-add"';
87
-            $containerTemplateHtml[] =     'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"';
85
+            $containerTemplateHtml[] = 'href="#"';
86
+            $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"';
87
+            $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"';
88 88
             // no int cast for databaseRow uid, this can be "NEW1234..."
89
-            $containerTemplateHtml[] =     'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"';
90
-            $containerTemplateHtml[] =     'data-command="' . htmlspecialchars($this->data['command']) . '"';
91
-            $containerTemplateHtml[] =     'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"';
92
-            $containerTemplateHtml[] =     'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"';
93
-            $containerTemplateHtml[] =     'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"';
94
-            $containerTemplateHtml[] =     'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"';
95
-            $containerTemplateHtml[] =     'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"';
96
-            $containerTemplateHtml[] =     'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"';
97
-            $containerTemplateHtml[] =     'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"';
98
-            $containerTemplateHtml[] =     'data-target="#' . htmlspecialchars($sectionContainerId) . '"';
89
+            $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"';
90
+            $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"';
91
+            $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"';
92
+            $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"';
93
+            $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"';
94
+            $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"';
95
+            $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"';
96
+            $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"';
97
+            $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"';
98
+            $containerTemplateHtml[] = 'data-target="#' . htmlspecialchars($sectionContainerId) . '"';
99 99
             $containerTemplateHtml[] = '>';
100
-            $containerTemplateHtml[] =    $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render();
101
-            $containerTemplateHtml[] =    htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30));
100
+            $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render();
101
+            $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30));
102 102
             $containerTemplateHtml[] = '</a>';
103 103
             $containerTemplatesHtml[] = implode(LF, $containerTemplateHtml);
104 104
         }
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
         $createElementsHtml = [];
107 107
         if ($userHasAccessToDefaultLanguage) {
108 108
             $createElementsHtml[] = '<div class="t3-form-field-add-flexsection">';
109
-            $createElementsHtml[] =    '<div class="btn-group">';
110
-            $createElementsHtml[] =        implode('', $containerTemplatesHtml);
111
-            $createElementsHtml[] =    '</div>';
109
+            $createElementsHtml[] = '<div class="btn-group">';
110
+            $createElementsHtml[] = implode('', $containerTemplatesHtml);
111
+            $createElementsHtml[] = '</div>';
112 112
             $createElementsHtml[] = '</div>';
113 113
         }
114 114
 
@@ -121,28 +121,28 @@  discard block
 block discarded – undo
121 121
         $toggleAll = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.toggleall'));
122 122
         $html = [];
123 123
         $html[] = '<div class="panel panel-tab">';
124
-        $html[] =     '<div class="panel-body">';
125
-        $html[] =         '<div class="t3-form-field-container t3-form-flex" id="' . htmlspecialchars($containerId) . '" data-section="#' . htmlspecialchars($sectionContainerId) . '">';
126
-        $html[] =             '<div class="t3-form-field-label-flexsection">';
127
-        $html[] =                 '<h4>';
128
-        $html[] =                     htmlspecialchars($sectionTitle);
129
-        $html[] =                 '</h4>';
130
-        $html[] =             '</div>';
131
-        $html[] =             '<div class="form-group">';
132
-        $html[] =                 '<button class="btn btn-default t3-form-flexsection-toggle" type="button" title="' . $toggleAll . '" data-expand-all="false">';
133
-        $html[] =                     $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll;
134
-        $html[] =                 '</button>';
135
-        $html[] =             '</div>';
136
-        $html[] =             '<div';
137
-        $html[] =                 'id="' . htmlspecialchars($sectionContainerId) . '"';
138
-        $html[] =                 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"';
139
-        $html[] =                 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"';
140
-        $html[] =             '>';
141
-        $html[] =                 $resultArray['html'];
142
-        $html[] =             '</div>';
143
-        $html[] =             implode(LF, $createElementsHtml);
144
-        $html[] =         '</div>';
145
-        $html[] =     '</div>';
124
+        $html[] = '<div class="panel-body">';
125
+        $html[] = '<div class="t3-form-field-container t3-form-flex" id="' . htmlspecialchars($containerId) . '" data-section="#' . htmlspecialchars($sectionContainerId) . '">';
126
+        $html[] = '<div class="t3-form-field-label-flexsection">';
127
+        $html[] = '<h4>';
128
+        $html[] = htmlspecialchars($sectionTitle);
129
+        $html[] = '</h4>';
130
+        $html[] = '</div>';
131
+        $html[] = '<div class="form-group">';
132
+        $html[] = '<button class="btn btn-default t3-form-flexsection-toggle" type="button" title="' . $toggleAll . '" data-expand-all="false">';
133
+        $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll;
134
+        $html[] = '</button>';
135
+        $html[] = '</div>';
136
+        $html[] = '<div';
137
+        $html[] = 'id="' . htmlspecialchars($sectionContainerId) . '"';
138
+        $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"';
139
+        $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"';
140
+        $html[] = '>';
141
+        $html[] = $resultArray['html'];
142
+        $html[] = '</div>';
143
+        $html[] = implode(LF, $createElementsHtml);
144
+        $html[] = '</div>';
145
+        $html[] = '</div>';
146 146
         $html[] = '</div>';
147 147
 
148 148
         $resultArray['html'] = implode(LF, $html);
Please login to merge, or discard this patch.