@@ -138,7 +138,7 @@ |
||
| 138 | 138 | ]; |
| 139 | 139 | while ($row = $statement->fetch()) { |
| 140 | 140 | $result[$row['link_type']] = $row['amount']; |
| 141 | - $result['total']+= $row['amount']; |
|
| 141 | + $result['total'] += $row['amount']; |
|
| 142 | 142 | } |
| 143 | 143 | return $result; |
| 144 | 144 | } |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | $dump = self::ansiEscapeWrap('"' . implode(PHP_EOL . str_repeat(self::PLAINTEXT_INDENT, $level + 1), str_split($croppedValue, 76)) . '"', '33', $ansiColors) . ' (' . strlen($value) . ' chars)'; |
| 95 | 95 | } else { |
| 96 | 96 | $lines = str_split($croppedValue, 76); |
| 97 | - $lines = array_map(static function (string $line): string { |
|
| 97 | + $lines = array_map(static function(string $line): string { |
|
| 98 | 98 | return htmlspecialchars($line, ENT_COMPAT); |
| 99 | 99 | }, $lines); |
| 100 | 100 | $dump = sprintf('\'<span class="extbase-debug-string">%s</span>\' (%s chars)', implode('<br />' . str_repeat(self::HTML_INDENT, $level + 1), $lines), strlen($value)); |
@@ -101,7 +101,7 @@ |
||
| 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 | |
@@ -219,7 +219,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | }); |
@@ -226,7 +226,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -50,7 +50,7 @@ |
||
| 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 |
@@ -109,7 +109,7 @@ |
||
| 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 | } |
@@ -76,7 +76,7 @@ |
||
| 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 | } |
@@ -261,7 +261,7 @@ |
||
| 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 { |
@@ -198,7 +198,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |