Passed
Push — master ( 933edc...f61bbf )
by
unknown
15:51
created
typo3/sysext/extbase/Classes/Reflection/ClassSchema/Method.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     {
102 102
         $position = 0;
103 103
 
104
-        $parameters = array_filter($this->getParameters(), function (MethodParameter $parameter) use ($position) {
104
+        $parameters = array_filter($this->getParameters(), function(MethodParameter $parameter) use ($position) {
105 105
             return $parameter->getPosition() === $position;
106 106
         });
107 107
 
Please login to merge, or discard this patch.
typo3/sysext/extbase/Classes/Reflection/ClassSchema.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             $annotations = $annotationReader->getPropertyAnnotations($reflectionProperty);
220 220
 
221 221
             /** @var array|Validate[] $validateAnnotations */
222
-            $validateAnnotations = array_filter($annotations, function ($annotation) {
222
+            $validateAnnotations = array_filter($annotations, function($annotation) {
223 223
                 return $annotation instanceof Validate;
224 224
             });
225 225
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
             $annotations = $annotationReader->getMethodAnnotations($reflectionMethod);
317 317
 
318 318
             /** @var array|Validate[] $validateAnnotations */
319
-            $validateAnnotations = array_filter($annotations, function ($annotation) {
319
+            $validateAnnotations = array_filter($annotations, function($annotation) {
320 320
                 return $annotation instanceof Validate;
321 321
             });
322 322
 
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 
351 351
                 $parameterName = $reflectionParameter->getName();
352 352
 
353
-                $ignoreValidationParameters = array_filter($annotations, function ($annotation) use ($parameterName) {
353
+                $ignoreValidationParameters = array_filter($annotations, function($annotation) use ($parameterName) {
354 354
                     return $annotation instanceof IgnoreValidation && $annotation->argumentName === $parameterName;
355 355
                 });
356 356
 
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
      */
632 632
     public function getInjectMethods(): array
633 633
     {
634
-        return array_filter($this->buildMethodObjects(), function ($method) {
634
+        return array_filter($this->buildMethodObjects(), function($method) {
635 635
             /** @var Method $method */
636 636
             return $method->isInjectMethod();
637 637
         });
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
      */
643 643
     public function getInjectProperties(): array
644 644
     {
645
-        return array_filter($this->buildPropertyObjects(), static function ($property) {
645
+        return array_filter($this->buildPropertyObjects(), static function($property) {
646 646
             /** @var Property $property */
647 647
             return $property->isInjectProperty();
648 648
         });
Please login to merge, or discard this patch.
typo3/sysext/extbase/Classes/Reflection/ObjectAccess.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         $accessor = self::createAccessor();
228 228
         $propertyNames = array_keys($classSchema->getProperties());
229
-        $accessiblePropertyNames = array_filter($propertyNames, function ($propertyName) use ($accessor, $object) {
229
+        $accessiblePropertyNames = array_filter($propertyNames, function($propertyName) use ($accessor, $object) {
230 230
             return $accessor->isReadable($object, $propertyName);
231 231
         });
232 232
 
@@ -282,11 +282,11 @@  discard block
 block discarded – undo
282 282
         } else {
283 283
             $classSchema = GeneralUtility::makeInstance(ReflectionService::class)->getClassSchema($object);
284 284
 
285
-            $propertyNames = array_filter(array_keys($classSchema->getProperties()), function ($methodName) use ($accessor, $object) {
285
+            $propertyNames = array_filter(array_keys($classSchema->getProperties()), function($methodName) use ($accessor, $object) {
286 286
                 return $accessor->isWritable($object, $methodName);
287 287
             });
288 288
 
289
-            $setters = array_filter(array_keys($classSchema->getMethods()), function ($methodName) use ($object) {
289
+            $setters = array_filter(array_keys($classSchema->getMethods()), function($methodName) use ($object) {
290 290
                 return StringUtility::beginsWith($methodName, 'set') && is_callable([$object, $methodName]);
291 291
             });
292 292
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
      */
438 438
     private static function convertToArrayPropertyPath(PropertyPath $propertyPath): PropertyPath
439 439
     {
440
-        $segments = array_map(function ($segment) {
440
+        $segments = array_map(function($segment) {
441 441
             return static::wrap($segment);
442 442
         }, $propertyPath->getElements());
443 443
 
Please login to merge, or discard this patch.
sysext/redirects/Classes/Controller/RecordHistoryRollbackController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $correlationIds = $request->getQueryParams()['correlation_ids'] ?? [];
51 51
         /** @var CorrelationId[] $correlationIds */
52 52
         $correlationIds = array_map(
53
-            function (string $correlationId) {
53
+            function(string $correlationId) {
54 54
                 return CorrelationId::fromString($correlationId);
55 55
             },
56 56
             $correlationIds
Please login to merge, or discard this patch.
typo3/sysext/redirects/Classes/Service/IntegrityService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
      */
110 110
     private function getAllEntryPointsForSite(Site $site): array
111 111
     {
112
-        return array_map(static function (SiteLanguage $language): string {
112
+        return array_map(static function(SiteLanguage $language): string {
113 113
             return (string)$language->getBase();
114 114
         }, $site->getLanguages());
115 115
     }
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/TypoScript/Parser/ConstantConfigurationParser.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             // Sort configurations of each subcategory
77 77
             foreach ($hierarchicConfiguration as &$catConfigurationArray) {
78 78
                 foreach ($catConfigurationArray as &$subcatConfigurationArray) {
79
-                    uasort($subcatConfigurationArray, function ($a, $b) {
79
+                    uasort($subcatConfigurationArray, function($a, $b) {
80 80
                         return strnatcmp($a['subcat'], $b['subcat']);
81 81
                     });
82 82
                 }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
261 261
                                     $editableComments[$const]['subcat_name'] = $catSplit[1];
262 262
                                     $orderIdentifier = isset($catSplit[2]) ? trim($catSplit[2]) : $counter;
263 263
                                     $editableComments[$const]['subcat'] = ($this->subCategories[$catSplit[1]][1] ?? '')
264
-                                                                          . '/' . $catSplit[1] . '/' . $orderIdentifier . 'z';
264
+                                                                            . '/' . $catSplit[1] . '/' . $orderIdentifier . 'z';
265 265
                                 } elseif (isset($catSplit[2])) {
266 266
                                     $editableComments[$const]['subcat'] = 'x/' . trim($catSplit[2]) . 'z';
267 267
                                 } else {
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Database/Schema/Parser/TableBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $indexName = $item->indexName->getQuotedName();
199 199
 
200 200
         $columnNames = array_map(
201
-            function (IndexColumnName $columnName) {
201
+            function(IndexColumnName $columnName) {
202 202
                 if ($columnName->length) {
203 203
                     return $columnName->columnName->getQuotedName() . '(' . $columnName->length . ')';
204 204
                 }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     {
249 249
         $indexName = $item->indexName->getQuotedName() ?: null;
250 250
         $localColumnNames = array_map(
251
-            function (IndexColumnName $columnName) {
251
+            function(IndexColumnName $columnName) {
252 252
                 return $columnName->columnName->getQuotedName();
253 253
             },
254 254
             $item->columnNames
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     ) {
271 271
         $foreignTableName = $referenceDefinition->tableName->getQuotedName();
272 272
         $foreignColumnNames = array_map(
273
-            function (IndexColumnName $columnName) {
273
+            function(IndexColumnName $columnName) {
274 274
                 return $columnName->columnName->getQuotedName();
275 275
             },
276 276
             $referenceDefinition->columnNames
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Database/Query/QueryHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $orderExpressions = GeneralUtility::trimExplode(',', $input, true);
46 46
 
47 47
         return array_map(
48
-            function ($expression) {
48
+            function($expression) {
49 49
                 $fieldNameOrderArray = GeneralUtility::trimExplode(' ', $expression, true);
50 50
                 $fieldName = $fieldNameOrderArray[0] ?? null;
51 51
                 $order = $fieldNameOrderArray[1] ?? null;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $tableExpressions = GeneralUtility::trimExplode(',', $input, true);
74 74
 
75 75
         return array_map(
76
-            function ($expression) {
76
+            function($expression) {
77 77
                 [$tableName, $as, $alias] = array_pad(GeneralUtility::trimExplode(' ', $expression, true), 3, null);
78 78
 
79 79
                 if (!empty($as) && strtolower($as) === 'as' && !empty($alias)) {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         if (strpos($sql, '{#') !== false) {
220 220
             $sql = preg_replace_callback(
221 221
                 '/{#(?P<identifier>[^}]+)}/',
222
-                function (array $matches) use ($connection) {
222
+                function(array $matches) use ($connection) {
223 223
                     return $connection->quoteIdentifier($matches['identifier']);
224 224
                 },
225 225
                 $sql
Please login to merge, or discard this patch.
typo3/sysext/core/Classes/Database/Driver/PDOPgSql/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
             if (defined('PDO::PGSQL_ATTR_DISABLE_PREPARES')
45 45
                 && (
46
-                    ! isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES])
46
+                    !isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES])
47 47
                     || $driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES] === true
48 48
                 )
49 49
             ) {
Please login to merge, or discard this patch.