@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | public function __toString() |
110 | 110 | { |
111 | - $filterNonPersistentKeys = function ($key) { |
|
111 | + $filterNonPersistentKeys = function($key) { |
|
112 | 112 | if (in_array($key, ['id', 'title', 'allowedAspectRatios', 'coverAreas'], true)) { |
113 | 113 | return false; |
114 | 114 | } |
@@ -52,7 +52,7 @@ |
||
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 | ); |
@@ -118,7 +118,7 @@ |
||
118 | 118 | $values = explode($quoteChar . ',' . $quoteChar, substr($valuesDefinition, 1, -1)); |
119 | 119 | |
120 | 120 | return array_map( |
121 | - function (string $value) use ($quoteChar) { |
|
121 | + function(string $value) use ($quoteChar) { |
|
122 | 122 | return str_replace($quoteChar . $quoteChar, $quoteChar, $value); |
123 | 123 | }, |
124 | 124 | $values |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | // Ignore new indexes that work on columns that need changes |
201 | 201 | foreach ($changedTable->addedIndexes as $indexName => $addedIndex) { |
202 | 202 | $indexColumns = array_map( |
203 | - function ($columnName) { |
|
203 | + function($columnName) { |
|
204 | 204 | // Strip MySQL prefix length information to get real column names |
205 | 205 | $columnName = preg_replace('/\(\d+\)$/', '', $columnName); |
206 | 206 | // Strip mssql '[' and ']' from column names |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | $tablesForConnection = array_keys( |
292 | 292 | array_filter( |
293 | 293 | $GLOBALS['TYPO3_CONF_VARS']['DB']['TableMapping'], |
294 | - function ($tableConnectionName) use ($connectionName) { |
|
294 | + function($tableConnectionName) use ($connectionName) { |
|
295 | 295 | return $tableConnectionName === $connectionName; |
296 | 296 | } |
297 | 297 | ) |
@@ -1150,7 +1150,7 @@ discard block |
||
1150 | 1150 | { |
1151 | 1151 | return array_filter( |
1152 | 1152 | $tableDiffs, |
1153 | - function ($table) use ($validTableNames) { |
|
1153 | + function($table) use ($validTableNames) { |
|
1154 | 1154 | if ($table instanceof Table) { |
1155 | 1155 | $tableName = $table->getName(); |
1156 | 1156 | } else { |
@@ -1192,7 +1192,7 @@ discard block |
||
1192 | 1192 | |
1193 | 1193 | // Remove the length information from column names for indexes if required. |
1194 | 1194 | $cleanedColumnNames = array_map( |
1195 | - function (string $columnName) use ($connection) { |
|
1195 | + function(string $columnName) use ($connection) { |
|
1196 | 1196 | if ($connection->getDatabasePlatform() instanceof MySqlPlatform) { |
1197 | 1197 | // Returning the unquoted, unmodified version of the column name since |
1198 | 1198 | // it can include the length information for BLOB/TEXT columns which |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | $requestArguments = $this->request->getArguments(); |
415 | 415 | |
416 | 416 | $propertyPathsForWhichPropertyMappingShouldHappen = []; |
417 | - $registerPropertyPaths = function ($propertyPath) use (&$propertyPathsForWhichPropertyMappingShouldHappen) { |
|
417 | + $registerPropertyPaths = function($propertyPath) use (&$propertyPathsForWhichPropertyMappingShouldHappen) { |
|
418 | 418 | $propertyPathParts = explode('.', $propertyPath); |
419 | 419 | $accumulatedPropertyPathParts = []; |
420 | 420 | foreach ($propertyPathParts as $propertyPathPart) { |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | } |
463 | 463 | |
464 | 464 | // The more parts the path has, the more early it is processed |
465 | - usort($propertyPathsForWhichPropertyMappingShouldHappen, function ($a, $b) { |
|
465 | + usort($propertyPathsForWhichPropertyMappingShouldHappen, function($a, $b) { |
|
466 | 466 | return substr_count($b, '.') - substr_count($a, '.'); |
467 | 467 | }); |
468 | 468 |
@@ -172,8 +172,8 @@ |
||
172 | 172 | |
173 | 173 | // Check for remaining edges in the graph |
174 | 174 | $cycles = []; |
175 | - array_walk($dependencyGraph, function ($dependencies, $fromId) use (&$cycles) { |
|
176 | - array_walk($dependencies, function ($dependency, $toId) use (&$cycles, $fromId) { |
|
175 | + array_walk($dependencyGraph, function($dependencies, $fromId) use (&$cycles) { |
|
176 | + array_walk($dependencies, function($dependency, $toId) use (&$cycles, $fromId) { |
|
177 | 177 | if ($dependency) { |
178 | 178 | $cycles[] = $fromId . '->' . $toId; |
179 | 179 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | foreach ($headers as $name => $headerValues) { |
320 | 320 | $this->validateHeaderName($name); |
321 | 321 | // check if all values are correct |
322 | - array_walk($headerValues, function ($value, $key, Message $messageObject) { |
|
322 | + array_walk($headerValues, function($value, $key, Message $messageObject) { |
|
323 | 323 | if (!$messageObject->isValidHeaderValue($value)) { |
324 | 324 | throw new \InvalidArgumentException('Invalid header value for header "' . $key . '"', 1436717268); |
325 | 325 | } |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | */ |
360 | 360 | protected function arrayContainsOnlyStrings(array $data) |
361 | 361 | { |
362 | - return array_reduce($data, function ($original, $item) { |
|
362 | + return array_reduce($data, function($original, $item) { |
|
363 | 363 | return is_string($item) ? $original : false; |
364 | 364 | }, true); |
365 | 365 | } |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | */ |
374 | 374 | protected function validateHeaderValues(array $values) |
375 | 375 | { |
376 | - array_walk($values, function ($value, $key, Message $messageObject) { |
|
376 | + array_walk($values, function($value, $key, Message $messageObject) { |
|
377 | 377 | if (!$messageObject->isValidHeaderValue($value)) { |
378 | 378 | throw new \InvalidArgumentException('Invalid header value for header "' . $key . '"', 1436717269); |
379 | 379 | } |
@@ -286,7 +286,7 @@ |
||
286 | 286 | // VERY simple quoting of tags is sufficient here for performance. Tags are already |
287 | 287 | // validated to not contain any bad characters, e.g. they are automatically generated |
288 | 288 | // inside this class and suffixed with a pure integer enforced by DB. |
289 | - $quotedTagList = array_map(function ($value) { |
|
289 | + $quotedTagList = array_map(function($value) { |
|
290 | 290 | return '\'' . $value . '\''; |
291 | 291 | }, $tags); |
292 | 292 |
@@ -384,10 +384,10 @@ |
||
384 | 384 | |
385 | 385 | $content = []; |
386 | 386 | $content[] = '<div class="' . implode(' ', $paletteFieldClasses) . '">'; |
387 | - $content[] = '<label class="t3js-formengine-label">'; |
|
388 | - $content[] = $label; |
|
389 | - $content[] = '</label>'; |
|
390 | - $content[] = $element['fieldHtml']; |
|
387 | + $content[] = '<label class="t3js-formengine-label">'; |
|
388 | + $content[] = $label; |
|
389 | + $content[] = '</label>'; |
|
390 | + $content[] = $element['fieldHtml']; |
|
391 | 391 | $content[] = '</div>'; |
392 | 392 | |
393 | 393 | return implode(LF, $content); |