@@ -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 |
@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -43,7 +43,7 @@ |
||
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 | ) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | if (is_array($record)) { |
34 | 34 | return array_map( |
35 | - static function ($value) { |
|
35 | + static function($value) { |
|
36 | 36 | if (is_resource($value)) { |
37 | 37 | $value = stream_get_contents($value); |
38 | 38 | } |
@@ -109,7 +109,7 @@ |
||
109 | 109 | 1533820194 |
110 | 110 | ); |
111 | 111 | } |
112 | - $hashInstance = GeneralUtility::makeInstance($defaultHashClassName, $defaultHashOptions); |
|
112 | + $hashInstance = GeneralUtility::makeInstance($defaultHashClassName, $defaultHashOptions); |
|
113 | 113 | if (!$hashInstance instanceof PasswordHashInterface) { |
114 | 114 | throw new \LogicException( |
115 | 115 | 'Configured default hash method ' . $defaultHashClassName . ' is not an instance of PasswordHashInterface', |
@@ -564,7 +564,7 @@ |
||
564 | 564 | |
565 | 565 | return array_filter( |
566 | 566 | array_map( |
567 | - function (array $record) { |
|
567 | + function(array $record) { |
|
568 | 568 | BackendUtility::workspaceOL( |
569 | 569 | $this->tableName, |
570 | 570 | $record, |