@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | namespace TYPO3\CMS\Core\Database\Schema; |
4 | 4 | |
5 | 5 | /* |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | // Ignore new indexes that work on columns that need changes |
160 | 160 | foreach ($changedTable->addedIndexes as $indexName => $addedIndex) { |
161 | 161 | $indexColumns = array_map( |
162 | - function ($columnName) { |
|
162 | + function($columnName) { |
|
163 | 163 | // Strip MySQL prefix length information to get real column names |
164 | 164 | $columnName = preg_replace('/\(\d+\)$/', '', $columnName); |
165 | 165 | // Strip mssql '[' and ']' from column names |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $tablesForConnection = array_keys( |
251 | 251 | array_filter( |
252 | 252 | $GLOBALS['TYPO3_CONF_VARS']['DB']['TableMapping'], |
253 | - function ($tableConnectionName) use ($connectionName) { |
|
253 | + function($tableConnectionName) use ($connectionName) { |
|
254 | 254 | return $tableConnectionName === $connectionName; |
255 | 255 | } |
256 | 256 | ) |
@@ -1063,7 +1063,7 @@ discard block |
||
1063 | 1063 | { |
1064 | 1064 | return array_filter( |
1065 | 1065 | $tableDiffs, |
1066 | - function ($table) use ($validTableNames) { |
|
1066 | + function($table) use ($validTableNames) { |
|
1067 | 1067 | if ($table instanceof Table) { |
1068 | 1068 | $tableName = $table->getName(); |
1069 | 1069 | } else { |
@@ -1105,7 +1105,7 @@ discard block |
||
1105 | 1105 | |
1106 | 1106 | // Remove the length information from column names for indexes if required. |
1107 | 1107 | $cleanedColumnNames = array_map( |
1108 | - function (string $columnName) use ($connection) { |
|
1108 | + function(string $columnName) use ($connection) { |
|
1109 | 1109 | if ($connection->getDatabasePlatform() instanceof MySqlPlatform) { |
1110 | 1110 | // Returning the unquoted, unmodified version of the column name since |
1111 | 1111 | // it can include the length information for BLOB/TEXT columns which |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\Parser; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\Parser\AST; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\Parser; |
5 | 5 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $indexName = $item->indexName->getQuotedName(); |
198 | 198 | |
199 | 199 | $columnNames = array_map( |
200 | - function (IndexColumnName $columnName) { |
|
200 | + function(IndexColumnName $columnName) { |
|
201 | 201 | if ($columnName->length) { |
202 | 202 | return $columnName->columnName->getQuotedName() . '(' . $columnName->length . ')'; |
203 | 203 | } |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | { |
248 | 248 | $indexName = $item->indexName->getQuotedName() ?: null; |
249 | 249 | $localColumnNames = array_map( |
250 | - function (IndexColumnName $columnName) { |
|
250 | + function(IndexColumnName $columnName) { |
|
251 | 251 | return $columnName->columnName->getQuotedName(); |
252 | 252 | }, |
253 | 253 | $item->columnNames |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | ) { |
270 | 270 | $foreignTableName = $referenceDefinition->tableName->getQuotedName(); |
271 | 271 | $foreignColumNames = array_map( |
272 | - function (IndexColumnName $columnName) { |
|
272 | + function(IndexColumnName $columnName) { |
|
273 | 273 | return $columnName->columnName->getQuotedName(); |
274 | 274 | }, |
275 | 275 | $referenceDefinition->columnNames |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | namespace TYPO3\CMS\Core\Database\Schema; |
4 | 4 | |
5 | 5 | /* |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\EventListener; |
5 | 5 | |
@@ -118,7 +118,7 @@ discard block |
||
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 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\EventListener; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\EventListener; |
5 | 5 | |
@@ -52,7 +52,7 @@ discard block |
||
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 | ); |