Test Failed
Branch master (137376)
by Tymoteusz
20:39
created
typo3/sysext/backend/Classes/Controller/FormSelectTreeAjaxController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         // Prepare processedTca: Remove all column definitions except the one that contains
42 42
         // our tree definition. This way only this field is calculated, everything else is ignored.
43
-        if (!isset($GLOBALS['TCA'][$tableName])  || !is_array($GLOBALS['TCA'][$tableName])) {
43
+        if (!isset($GLOBALS['TCA'][$tableName]) || !is_array($GLOBALS['TCA'][$tableName])) {
44 44
             throw new \RuntimeException(
45 45
                 'TCA for table ' . $tableName . ' not found',
46 46
                 1479386729
Please login to merge, or discard this patch.
sysext/backend/Classes/Form/FormDataProvider/EvaluateDisplayConditions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace TYPO3\CMS\Backend\Form\FormDataProvider;
4 4
 
5 5
 /*
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
                     );
273 273
                 }
274 274
                 $fieldName = $conditionArray[1];
275
-                $allowedOperators = [ 'REQ', '>', '<', '>=', '<=', '-', '!-', '=', '!=', 'IN', '!IN', 'BIT', '!BIT' ];
275
+                $allowedOperators = ['REQ', '>', '<', '>=', '<=', '-', '!-', '=', '!=', 'IN', '!IN', 'BIT', '!BIT'];
276 276
                 if (empty($conditionArray[2]) || !in_array($conditionArray[2], $allowedOperators)) {
277 277
                     throw new \RuntimeException(
278 278
                         'Field condition "' . $conditionString . '" must have a valid operator as third part, non or invalid one given.'
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                             1481401892
304 304
                         );
305 305
                     }
306
-                } elseif (in_array($namedConditionArray['operator'], [ '>', '<', '>=', '<=', 'BIT', '!BIT' ])) {
306
+                } elseif (in_array($namedConditionArray['operator'], ['>', '<', '>=', '<=', 'BIT', '!BIT'])) {
307 307
                     if (!MathUtility::canBeInterpretedAsInteger($operand)) {
308 308
                         throw new \RuntimeException(
309 309
                             'Field condition "' . $conditionString . '" with comparison operator ' . $namedConditionArray['operator']
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Container/FlexFormSectionContainer.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -78,22 +78,22 @@  discard block
 block discarded – undo
78 78
             }
79 79
             $containerTemplateHtml = [];
80 80
             $containerTemplateHtml[] = '<a';
81
-            $containerTemplateHtml[] =     'href="#"';
82
-            $containerTemplateHtml[] =     'class="btn btn-default t3js-flex-container-add"';
83
-            $containerTemplateHtml[] =     'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"';
81
+            $containerTemplateHtml[] = 'href="#"';
82
+            $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"';
83
+            $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"';
84 84
             // no int cast for databaseRow uid, this can be "NEW1234..."
85
-            $containerTemplateHtml[] =     'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"';
86
-            $containerTemplateHtml[] =     'data-command="' . htmlspecialchars($this->data['command']) . '"';
87
-            $containerTemplateHtml[] =     'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"';
88
-            $containerTemplateHtml[] =     'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"';
89
-            $containerTemplateHtml[] =     'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"';
90
-            $containerTemplateHtml[] =     'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"';
91
-            $containerTemplateHtml[] =     'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"';
92
-            $containerTemplateHtml[] =     'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"';
93
-            $containerTemplateHtml[] =     'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"';
85
+            $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"';
86
+            $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"';
87
+            $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"';
88
+            $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"';
89
+            $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"';
90
+            $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"';
91
+            $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"';
92
+            $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"';
93
+            $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"';
94 94
             $containerTemplateHtml[] = '>';
95
-            $containerTemplateHtml[] =    $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render();
96
-            $containerTemplateHtml[] =    htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30));
95
+            $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render();
96
+            $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30));
97 97
             $containerTemplateHtml[] = '</a>';
98 98
             $containerTemplatesHtml[] = implode(LF, $containerTemplateHtml);
99 99
         }
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
         $createElementsHtml = [];
102 102
         if ($userHasAccessToDefaultLanguage) {
103 103
             $createElementsHtml[] = '<div class="t3-form-field-add-flexsection">';
104
-            $createElementsHtml[] =    '<div class="btn-group">';
105
-            $createElementsHtml[] =        implode('', $containerTemplatesHtml);
106
-            $createElementsHtml[] =    '</div>';
104
+            $createElementsHtml[] = '<div class="btn-group">';
105
+            $createElementsHtml[] = implode('', $containerTemplatesHtml);
106
+            $createElementsHtml[] = '</div>';
107 107
             $createElementsHtml[] = '</div>';
108 108
         }
109 109
 
@@ -116,27 +116,27 @@  discard block
 block discarded – undo
116 116
         $toggleAll = htmlspecialchars($languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.toggleall'));
117 117
         $html = [];
118 118
         $html[] = '<div class="panel panel-tab">';
119
-        $html[] =     '<div class="panel-body">';
120
-        $html[] =         '<div class="t3-form-field-container t3-form-flex">';
121
-        $html[] =             '<div class="t3-form-field-label-flexsection">';
122
-        $html[] =                 '<h4>';
123
-        $html[] =                     htmlspecialchars($sectionTitle);
124
-        $html[] =                 '</h4>';
125
-        $html[] =             '</div>';
126
-        $html[] =             '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">';
127
-        $html[] =                 '<a class="btn btn-default" href="#" title="' . $toggleAll . '">';
128
-        $html[] =                     $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll;
129
-        $html[] =                 '</a>';
130
-        $html[] =             '</div>';
131
-        $html[] =             '<div';
132
-        $html[] =                 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"';
133
-        $html[] =                 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"';
134
-        $html[] =             '>';
135
-        $html[] =                 $resultArray['html'];
136
-        $html[] =             '</div>';
137
-        $html[] =             implode(LF, $createElementsHtml);
138
-        $html[] =         '</div>';
139
-        $html[] =     '</div>';
119
+        $html[] = '<div class="panel-body">';
120
+        $html[] = '<div class="t3-form-field-container t3-form-flex">';
121
+        $html[] = '<div class="t3-form-field-label-flexsection">';
122
+        $html[] = '<h4>';
123
+        $html[] = htmlspecialchars($sectionTitle);
124
+        $html[] = '</h4>';
125
+        $html[] = '</div>';
126
+        $html[] = '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">';
127
+        $html[] = '<a class="btn btn-default" href="#" title="' . $toggleAll . '">';
128
+        $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll;
129
+        $html[] = '</a>';
130
+        $html[] = '</div>';
131
+        $html[] = '<div';
132
+        $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"';
133
+        $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"';
134
+        $html[] = '>';
135
+        $html[] = $resultArray['html'];
136
+        $html[] = '</div>';
137
+        $html[] = implode(LF, $createElementsHtml);
138
+        $html[] = '</div>';
139
+        $html[] = '</div>';
140 140
         $html[] = '</div>';
141 141
 
142 142
         $resultArray['html'] = implode(LF, $html);
Please login to merge, or discard this patch.
Classes/Database/Schema/EventListener/SchemaIndexDefinitionListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TYPO3\CMS\Core\Database\Schema\EventListener;
5 5
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         $subPartColumns = array_filter(
54 54
             $tableIndexes,
55
-            function ($column) {
55
+            function($column) {
56 56
                 return $column['Sub_Part'];
57 57
             }
58 58
         );
Please login to merge, or discard this patch.
typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace TYPO3\CMS\Install\Updates;
4 4
 
5 5
 /*
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                 $updatedFields = array_diff_assoc($row, $rowBefore);
174 174
                 if (empty($updatedFields)) {
175 175
                     // Updaters changed no field of that row
176
-                    $rowCountWithoutUpdate ++;
176
+                    $rowCountWithoutUpdate++;
177 177
                     if ($rowCountWithoutUpdate >= 200) {
178 178
                         // Update startPosition if there were many rows without data change
179 179
                         $startPosition = [
Please login to merge, or discard this patch.
typo3/sysext/extbase/Classes/Reflection/ObjectAccess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
 
234 234
         $reflection = new \ReflectionClass($object);
235 235
         $declaredPropertyNames = array_map(
236
-            function (\ReflectionProperty $property) {
236
+            function(\ReflectionProperty $property) {
237 237
                 return $property->getName();
238 238
             },
239 239
             $reflection->getProperties(\ReflectionProperty::IS_PUBLIC)
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Cache/Backend/Typo3DatabaseBackend.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         $this->throwExceptionIfFrontendDoesNotExist();
139 139
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
140 140
             ->getQueryBuilderForTable($this->cacheTable);
141
-        $cacheRow =  $queryBuilder->select('content')
141
+        $cacheRow = $queryBuilder->select('content')
142 142
             ->from($this->cacheTable)
143 143
             ->where(
144 144
                 $queryBuilder->expr()->eq(
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         // VERY simple quoting of tags is sufficient here for performance. Tags are already
291 291
         // validated to not contain any bad characters, e.g. they are automatically generated
292 292
         // inside this class and suffixed with a pure integer enforced by DB.
293
-        $quotedTagList = array_map(function ($value) {
293
+        $quotedTagList = array_map(function($value) {
294 294
             return '\'' . $value . '\'';
295 295
         }, $tags);
296 296
 
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/FieldWizard/OtherLanguageContent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace TYPO3\CMS\Backend\Form\FieldWizard;
4 4
 
5 5
 /*
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
         );
70 70
         if ($defaultLanguageValue !== '') {
71 71
             $html[] = '<div class="t3-form-original-language">';
72
-            $html[] =   $iconFactory->getIcon($this->data['systemLanguageRows'][0]['flagIconIdentifier'], Icon::SIZE_SMALL)->render();
73
-            $html[] =   $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName);
72
+            $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][0]['flagIconIdentifier'], Icon::SIZE_SMALL)->render();
73
+            $html[] = $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName);
74 74
             $html[] = '</div>';
75 75
         }
76 76
         $additionalPreviewLanguages = $this->data['additionalLanguageRows'];
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
             );
85 85
             if ($defaultLanguageValue !== '') {
86 86
                 $html[] = '<div class="t3-form-original-language">';
87
-                $html[] =   $iconFactory->getIcon($this->data['systemLanguageRows'][$previewLanguage['sys_language_uid']]['flagIconIdentifier'], Icon::SIZE_SMALL)->render();
88
-                $html[] =   $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName);
87
+                $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][$previewLanguage['sys_language_uid']]['flagIconIdentifier'], Icon::SIZE_SMALL)->render();
88
+                $html[] = $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName);
89 89
                 $html[] = '</div>';
90 90
             }
91 91
         }
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/FieldWizard/FileUpload.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             // If maxItems = 1 then automatically replace the current item file selector
56 56
             $resultArray['additionalJavaScriptPost'][] =
57 57
                 'TBE_EDITOR.clearBeforeSettingFormValueFromBrowseWin[' . GeneralUtility::quoteJSvalue($itemName) . '] = {'
58
-                   . 'itemFormElID_file: ' . GeneralUtility::quoteJSvalue($uploadFieldId)
58
+                    . 'itemFormElID_file: ' . GeneralUtility::quoteJSvalue($uploadFieldId)
59 59
                 . '}';
60 60
         }
61 61
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace TYPO3\CMS\Backend\Form\FieldWizard;
4 4
 
5 5
 /*
@@ -67,15 +67,15 @@  discard block
 block discarded – undo
67 67
             $multipleFilenameSuffix = '[]';
68 68
         }
69 69
 
70
-        $html= [];
70
+        $html = [];
71 71
         $html[] = '<div id="' . $uploadFieldId . '">';
72
-        $html[] =   '<input';
73
-        $html[] =       ' type="file"';
74
-        $html[] =       $selectorMultipleAttribute;
75
-        $html[] =       ' name="data_files' . $this->data['elementBaseName'] . $multipleFilenameSuffix . '"';
76
-        $html[] =       ' size="35"';
77
-        $html[] =       ' onchange="' . implode('', $parameterArray['fieldChangeFunc']) . '"';
78
-        $html[] =   '/>';
72
+        $html[] = '<input';
73
+        $html[] = ' type="file"';
74
+        $html[] = $selectorMultipleAttribute;
75
+        $html[] = ' name="data_files' . $this->data['elementBaseName'] . $multipleFilenameSuffix . '"';
76
+        $html[] = ' size="35"';
77
+        $html[] = ' onchange="' . implode('', $parameterArray['fieldChangeFunc']) . '"';
78
+        $html[] = '/>';
79 79
         $html[] = '</div>';
80 80
 
81 81
         $result['html'] = implode(LF, $html);
Please login to merge, or discard this patch.