Passed
Push — master ( 74899e...93dc02 )
by
unknown
13:02
created
typo3/sysext/backend/Classes/ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,18 +47,18 @@
 block discarded – undo
47 47
     public function getFactories(): array
48 48
     {
49 49
         return [
50
-            Application::class => [ static::class, 'getApplication' ],
51
-            RequestHandler::class => [ static::class, 'getRequestHandler' ],
52
-            RouteDispatcher::class => [ static::class, 'getRouteDispatcher' ],
53
-            'backend.middlewares' => [ static::class, 'getBackendMiddlewares' ],
54
-            'backend.routes' => [ static::class, 'getBackendRoutes' ],
50
+            Application::class => [static::class, 'getApplication'],
51
+            RequestHandler::class => [static::class, 'getRequestHandler'],
52
+            RouteDispatcher::class => [static::class, 'getRouteDispatcher'],
53
+            'backend.middlewares' => [static::class, 'getBackendMiddlewares'],
54
+            'backend.routes' => [static::class, 'getBackendRoutes'],
55 55
         ];
56 56
     }
57 57
 
58 58
     public function getExtensions(): array
59 59
     {
60 60
         return [
61
-            Router::class => [ static::class, 'configureBackendRouter' ],
61
+            Router::class => [static::class, 'configureBackendRouter'],
62 62
         ] + parent::getExtensions();
63 63
     }
64 64
 
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
         return ArrayUtility::keepItemsInArray(
585 585
             $items,
586 586
             $result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems'],
587
-            function ($value) {
587
+            function($value) {
588 588
                 return $value[1];
589 589
             }
590 590
         );
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
         }
733 733
 
734 734
         $allowedStorageIds = array_map(
735
-            function (ResourceStorage $storage) {
735
+            function(ResourceStorage $storage) {
736 736
                 return $storage->getUid();
737 737
             },
738 738
             $this->getBackendUser()->getFileStorages()
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
 
741 741
         return array_filter(
742 742
             $items,
743
-            function (array $item) use ($allowedStorageIds) {
743
+            function(array $item) use ($allowedStorageIds) {
744 744
                 $itemValue = $item[1] ?? null;
745 745
                 return empty($itemValue)
746 746
                     || in_array((int)$itemValue, $allowedStorageIds, true);
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
             }
835 835
             // Sort fields by the translated value
836 836
             if (!empty($excludeArrayTable)) {
837
-                usort($excludeArrayTable, function (array $array1, array $array2) {
837
+                usort($excludeArrayTable, function(array $array1, array $array2) {
838 838
                     $array1 = reset($array1);
839 839
                     $array2 = reset($array2);
840 840
                     if (is_string($array1) && is_string($array2)) {
Please login to merge, or discard this patch.
typo3/sysext/extbase/Classes/ServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@
 block discarded – undo
36 36
     public function getFactories(): array
37 37
     {
38 38
         return [
39
-            Object\Container\Container::class => [ static::class, 'getObjectContainer' ],
40
-            Object\ObjectManager::class => [ static::class, 'getObjectManager' ],
41
-            SignalSlot\Dispatcher::class => [ static::class, 'getSignalSlotDispatcher' ],
42
-            Configuration\BackendConfigurationManager::class => [ static::class, 'getBackendConfigurationManager' ],
43
-            Configuration\ConfigurationManager::class => [ static::class, 'getConfigurationManager' ],
44
-            Reflection\ReflectionService::class => [ static::class, 'getReflectionService' ],
45
-            Service\EnvironmentService::class => [ static::class, 'getEnvironmentService' ],
46
-            Service\ExtensionService::class => [ static::class, 'getExtensionService' ],
47
-            Security\Cryptography\HashService::class => [ static::class, 'getHashService' ],
39
+            Object\Container\Container::class => [static::class, 'getObjectContainer'],
40
+            Object\ObjectManager::class => [static::class, 'getObjectManager'],
41
+            SignalSlot\Dispatcher::class => [static::class, 'getSignalSlotDispatcher'],
42
+            Configuration\BackendConfigurationManager::class => [static::class, 'getBackendConfigurationManager'],
43
+            Configuration\ConfigurationManager::class => [static::class, 'getConfigurationManager'],
44
+            Reflection\ReflectionService::class => [static::class, 'getReflectionService'],
45
+            Service\EnvironmentService::class => [static::class, 'getEnvironmentService'],
46
+            Service\ExtensionService::class => [static::class, 'getExtensionService'],
47
+            Security\Cryptography\HashService::class => [static::class, 'getHashService'],
48 48
         ];
49 49
     }
50 50
 
Please login to merge, or discard this patch.
typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
         try {
127 127
             $input = new ArrayInput($this->getParameters(true), $schedulableCommand->getDefinition());
128 128
             $arguments = $input->__toString();
129
-        } catch (\Symfony\Component\Console\Exception\RuntimeException|InvalidArgumentException $e) {
129
+        } catch (\Symfony\Component\Console\Exception\RuntimeException | InvalidArgumentException $e) {
130 130
             return $label . "\n"
131 131
                 . sprintf(
132 132
                     $this->getLanguageService()->sL('LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.errorParsingArguments'),
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Configuration/Parser/PageTsConfigParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
                     $beforeSubstitution = $content;
104 104
                     $content = preg_replace_callback(
105 105
                         '/\\{\\$(.[^}]*)\\}/',
106
-                        function (array $matches) use ($siteSettings): string {
106
+                        function(array $matches) use ($siteSettings): string {
107 107
                             return isset($siteSettings[$matches[1]]) && !is_array($siteSettings[$matches[1]])
108 108
                                 ? (string)$siteSettings[$matches[1]] : $matches[0];
109 109
                         },
Please login to merge, or discard this patch.
ExpressionLanguage/FunctionsProvider/Typo3ConditionFunctionsProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
 
50 50
     protected function getLoginUserFunction(): ExpressionFunction
51 51
     {
52
-        return new ExpressionFunction('loginUser', function () {
52
+        return new ExpressionFunction('loginUser', function() {
53 53
             // Not implemented, we only use the evaluator
54
-        }, function ($arguments, $str) {
54
+        }, function($arguments, $str) {
55 55
             $user = $arguments['frontend']->user ?? $arguments['backend']->user;
56 56
             if ($user->isLoggedIn) {
57 57
                 foreach (GeneralUtility::trimExplode(',', $str, true) as $test) {
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
 
67 67
     protected function getTSFEFunction(): ExpressionFunction
68 68
     {
69
-        return new ExpressionFunction('getTSFE', function () {
69
+        return new ExpressionFunction('getTSFE', function() {
70 70
             // Not implemented, we only use the evaluator
71
-        }, function ($arguments) {
71
+        }, function($arguments) {
72 72
             if (($GLOBALS['TSFE'] ?? null) instanceof TypoScriptFrontendController) {
73 73
                 return $GLOBALS['TSFE'];
74 74
             }
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
 
79 79
     protected function getUsergroupFunction(): ExpressionFunction
80 80
     {
81
-        return new ExpressionFunction('usergroup', function () {
81
+        return new ExpressionFunction('usergroup', function() {
82 82
             // Not implemented, we only use the evaluator
83
-        }, function ($arguments, $str) {
83
+        }, function($arguments, $str) {
84 84
             $user = $arguments['frontend']->user ?? $arguments['backend']->user;
85 85
             $groupList = $user->userGroupList ?? '';
86 86
             // '0,-1' is the default usergroups string when not logged in!
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
     {
100 100
         return new ExpressionFunction(
101 101
             'session',
102
-            function () {
102
+            function() {
103 103
                 // Not implemented, we only use the evaluator
104 104
             },
105
-            function ($arguments, $str) {
105
+            function($arguments, $str) {
106 106
                 $retVal = null;
107 107
                 $keyParts = explode('|', $str);
108 108
                 $sessionKey = array_shift($keyParts);
@@ -129,10 +129,10 @@  discard block
 block discarded – undo
129 129
     {
130 130
         return new ExpressionFunction(
131 131
             'site',
132
-            function () {
132
+            function() {
133 133
                 // Not implemented, we only use the evaluator
134 134
             },
135
-            function ($arguments, $str) {
135
+            function($arguments, $str) {
136 136
                 /** @var RequestWrapper $requestWrapper */
137 137
                 $requestWrapper = $arguments['request'];
138 138
                 $site = $requestWrapper->getSite();
@@ -151,10 +151,10 @@  discard block
 block discarded – undo
151 151
     {
152 152
         return new ExpressionFunction(
153 153
             'siteLanguage',
154
-            function () {
154
+            function() {
155 155
                 // Not implemented, we only use the evaluator
156 156
             },
157
-            function ($arguments, $str) {
157
+            function($arguments, $str) {
158 158
                 /** @var RequestWrapper $requestWrapper */
159 159
                 $requestWrapper = $arguments['request'];
160 160
                 $siteLanguage = $requestWrapper->getSiteLanguage();
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,20 +55,20 @@  discard block
 block discarded – undo
55 55
             if ($tableName === '*') {
56 56
                 $label = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.allTables');
57 57
                 $allowedTablesHtml[] = '<span>';
58
-                $allowedTablesHtml[] =  htmlspecialchars($label);
58
+                $allowedTablesHtml[] = htmlspecialchars($label);
59 59
                 $allowedTablesHtml[] = '</span>';
60 60
             } else {
61 61
                 $label = $languageService->sL($GLOBALS['TCA'][$tableName]['ctrl']['title']);
62 62
                 $icon = $iconFactory->getIconForRecord($tableName, [], Icon::SIZE_SMALL)->render();
63 63
                 if ((bool)($config['fieldControl']['elementBrowser']['disabled'] ?? false)) {
64 64
                     $allowedTablesHtml[] = '<span class="tablelist-item-nolink">';
65
-                    $allowedTablesHtml[] =  $icon;
66
-                    $allowedTablesHtml[] =  htmlspecialchars($label);
65
+                    $allowedTablesHtml[] = $icon;
66
+                    $allowedTablesHtml[] = htmlspecialchars($label);
67 67
                     $allowedTablesHtml[] = '</span>';
68 68
                 } else {
69 69
                     $allowedTablesHtml[] = '<a href="#" class="btn btn-default t3js-element-browser" data-mode="db" data-params="' . htmlspecialchars($itemName . '|||' . $tableName) . '">';
70
-                    $allowedTablesHtml[] =  $icon;
71
-                    $allowedTablesHtml[] =  htmlspecialchars($label);
70
+                    $allowedTablesHtml[] = $icon;
71
+                    $allowedTablesHtml[] = htmlspecialchars($label);
72 72
                     $allowedTablesHtml[] = '</a>';
73 73
                 }
74 74
             }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         $html = [];
78 78
         $html[] = '<div class="help-block">';
79
-        $html[] =   implode(LF, $allowedTablesHtml);
79
+        $html[] = implode(LF, $allowedTablesHtml);
80 80
         $html[] = '</div>';
81 81
 
82 82
         $result['html'] = implode(LF, $html);
Please login to merge, or discard this patch.
install/Classes/SystemEnvironment/ServerResponse/ServerResponseCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
     protected function wrapItems(array $items, string $before, string $after): array
297 297
     {
298 298
         return array_map(
299
-            function (string $item) use ($before, $after): string {
299
+            function(string $item) use ($before, $after): string {
300 300
                 return $before . $item . $after;
301 301
             },
302 302
             array_filter($items)
Please login to merge, or discard this patch.
typo3/sysext/backend/Classes/Form/Element/InputDateTimeElement.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
             $itemValue = $this->formatValue($format, $itemValue);
118 118
             $html = [];
119 119
             $html[] = '<div class="formengine-field-item t3js-formengine-field-item">';
120
-            $html[] =   $fieldInformationHtml;
121
-            $html[] =   '<div class="form-wizards-wrap">';
122
-            $html[] =       '<div class="form-wizards-element">';
123
-            $html[] =           '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
124
-            $html[] =               '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>';
125
-            $html[] =           '</div>';
126
-            $html[] =       '</div>';
127
-            $html[] =   '</div>';
120
+            $html[] = $fieldInformationHtml;
121
+            $html[] = '<div class="form-wizards-wrap">';
122
+            $html[] = '<div class="form-wizards-element">';
123
+            $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
124
+            $html[] = '<input class="form-control" value="' . htmlspecialchars($itemValue) . '" type="text" disabled>';
125
+            $html[] = '</div>';
126
+            $html[] = '</div>';
127
+            $html[] = '</div>';
128 128
             $html[] = '</div>';
129 129
             $resultArray['html'] = implode(LF, $html);
130 130
             return $resultArray;
@@ -193,31 +193,31 @@  discard block
 block discarded – undo
193 193
 
194 194
         $expansionHtml = [];
195 195
         $expansionHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
196
-        $expansionHtml[] =  '<div class="form-wizards-wrap">';
197
-        $expansionHtml[] =      '<div class="form-wizards-element">';
198
-        $expansionHtml[] =          '<div class="input-group">';
199
-        $expansionHtml[] =              '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
200
-        $expansionHtml[] =              '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
201
-        $expansionHtml[] =              '<span class="input-group-btn">';
202
-        $expansionHtml[] =                  '<label class="btn btn-default" for="' . $attributes['id'] . '">';
203
-        $expansionHtml[] =                      $this->iconFactory->getIcon('actions-edit-pick-date', Icon::SIZE_SMALL)->render();
204
-        $expansionHtml[] =                  '</label>';
205
-        $expansionHtml[] =              '</span>';
206
-        $expansionHtml[] =          '</div>';
207
-        $expansionHtml[] =      '</div>';
196
+        $expansionHtml[] = '<div class="form-wizards-wrap">';
197
+        $expansionHtml[] = '<div class="form-wizards-element">';
198
+        $expansionHtml[] = '<div class="input-group">';
199
+        $expansionHtml[] = '<input type="text" ' . GeneralUtility::implodeAttributes($attributes, true) . ' />';
200
+        $expansionHtml[] = '<input type="hidden" name="' . $parameterArray['itemFormElName'] . '" value="' . htmlspecialchars($itemValue) . '" />';
201
+        $expansionHtml[] = '<span class="input-group-btn">';
202
+        $expansionHtml[] = '<label class="btn btn-default" for="' . $attributes['id'] . '">';
203
+        $expansionHtml[] = $this->iconFactory->getIcon('actions-edit-pick-date', Icon::SIZE_SMALL)->render();
204
+        $expansionHtml[] = '</label>';
205
+        $expansionHtml[] = '</span>';
206
+        $expansionHtml[] = '</div>';
207
+        $expansionHtml[] = '</div>';
208 208
         if (!empty($fieldControlHtml)) {
209
-            $expansionHtml[] =      '<div class="form-wizards-items-aside">';
210
-            $expansionHtml[] =          '<div class="btn-group">';
211
-            $expansionHtml[] =              $fieldControlHtml;
212
-            $expansionHtml[] =          '</div>';
213
-            $expansionHtml[] =      '</div>';
209
+            $expansionHtml[] = '<div class="form-wizards-items-aside">';
210
+            $expansionHtml[] = '<div class="btn-group">';
211
+            $expansionHtml[] = $fieldControlHtml;
212
+            $expansionHtml[] = '</div>';
213
+            $expansionHtml[] = '</div>';
214 214
         }
215 215
         if (!empty($fieldWizardHtml)) {
216 216
             $expansionHtml[] = '<div class="form-wizards-items-bottom">';
217 217
             $expansionHtml[] = $fieldWizardHtml;
218 218
             $expansionHtml[] = '</div>';
219 219
         }
220
-        $expansionHtml[] =  '</div>';
220
+        $expansionHtml[] = '</div>';
221 221
         $expansionHtml[] = '</div>';
222 222
         $expansionHtml = implode(LF, $expansionHtml);
223 223
 
@@ -227,11 +227,11 @@  discard block
 block discarded – undo
227 227
             $fullElement = [];
228 228
             $fullElement[] = '<div class="t3-form-field-disable"></div>';
229 229
             $fullElement[] = '<div class="checkbox t3-form-field-eval-null-checkbox">';
230
-            $fullElement[] =     '<label for="' . $nullControlNameEscaped . '">';
231
-            $fullElement[] =         '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
232
-            $fullElement[] =         '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
233
-            $fullElement[] =         $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
234
-            $fullElement[] =     '</label>';
230
+            $fullElement[] = '<label for="' . $nullControlNameEscaped . '">';
231
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="0" />';
232
+            $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . ' />';
233
+            $fullElement[] = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.nullCheckbox');
234
+            $fullElement[] = '</label>';
235 235
             $fullElement[] = '</div>';
236 236
             $fullElement[] = $expansionHtml;
237 237
             $fullElement = implode(LF, $fullElement);
@@ -260,19 +260,19 @@  discard block
 block discarded – undo
260 260
             }
261 261
             $fullElement = [];
262 262
             $fullElement[] = '<div class="checkbox t3js-form-field-eval-null-placeholder-checkbox">';
263
-            $fullElement[] =     '<label for="' . $nullControlNameEscaped . '">';
264
-            $fullElement[] =         '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
265
-            $fullElement[] =         '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
266
-            $fullElement[] =         $overrideLabel;
267
-            $fullElement[] =     '</label>';
263
+            $fullElement[] = '<label for="' . $nullControlNameEscaped . '">';
264
+            $fullElement[] = '<input type="hidden" name="' . $nullControlNameEscaped . '" value="' . $fallbackValue . '" />';
265
+            $fullElement[] = '<input type="checkbox" name="' . $nullControlNameEscaped . '" id="' . $nullControlNameEscaped . '" value="1"' . $checked . $disabled . ' />';
266
+            $fullElement[] = $overrideLabel;
267
+            $fullElement[] = '</label>';
268 268
             $fullElement[] = '</div>';
269 269
             $fullElement[] = '<div class="t3js-formengine-placeholder-placeholder">';
270
-            $fullElement[] =    '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
271
-            $fullElement[] =        '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
272
-            $fullElement[] =    '</div>';
270
+            $fullElement[] = '<div class="form-control-wrap" style="max-width:' . $width . 'px">';
271
+            $fullElement[] = '<input type="text" class="form-control" disabled="disabled" value="' . htmlspecialchars($shortenedPlaceholder) . '" />';
272
+            $fullElement[] = '</div>';
273 273
             $fullElement[] = '</div>';
274 274
             $fullElement[] = '<div class="t3js-formengine-placeholder-formfield">';
275
-            $fullElement[] =    $expansionHtml;
275
+            $fullElement[] = $expansionHtml;
276 276
             $fullElement[] = '</div>';
277 277
             $fullElement = implode(LF, $fullElement);
278 278
         }
Please login to merge, or discard this patch.