@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $this->orderedFixtures = $this->fixtures; |
| 62 | 62 | usort( |
| 63 | 63 | $this->orderedFixtures, |
| 64 | - function ($a, $b) { |
|
| 64 | + function($a, $b) { |
|
| 65 | 65 | if ($a instanceof OrderedFixtureInterface && $b instanceof OrderedFixtureInterface) { |
| 66 | 66 | if ($a->getOrder() === $b->getOrder()) { |
| 67 | 67 | return 0; |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | if ($usedPrioritySorting) { |
| 101 | 101 | $this->orderedFixtures = array_filter( |
| 102 | 102 | $this->orderedFixtures, |
| 103 | - function ($fixture) { |
|
| 103 | + function($fixture) { |
|
| 104 | 104 | return $fixture instanceof OrderedFixtureInterface; |
| 105 | 105 | } |
| 106 | 106 | ); |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | $input->getOption('show-queries') ? null : OutputInterface::VERBOSITY_QUIET, |
| 88 | 88 | ' ' |
| 89 | 89 | ); |
| 90 | - $executor = $this->getMigrationExecutor(); |
|
| 90 | + $executor = $this->getMigrationExecutor(); |
|
| 91 | 91 | $executor->setLogger($logger); |
| 92 | 92 | $executor->getQueryExecutor()->setLogger($queryLogger); |
| 93 | 93 | $executor->executeUp($migrations, $input->getOption('dry-run')); |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | [new MySqlPlatform(), 'ALTER TABLE test_table CHANGE old_column new_column VARCHAR(100) NOT NULL'], |
| 161 | 161 | [new PostgreSqlPlatform(), 'ALTER TABLE test_table RENAME COLUMN old_column TO new_column'], |
| 162 | 162 | [new OraclePlatform(), 'ALTER TABLE test_table RENAME COLUMN old_column TO new_column'], |
| 163 | - [new SQLServer2005Platform(), "sp_RENAME 'test_table.old_column', 'new_column', 'COLUMN'",], |
|
| 163 | + [new SQLServer2005Platform(), "sp_RENAME 'test_table.old_column', 'new_column', 'COLUMN'", ], |
|
| 164 | 164 | ]; |
| 165 | 165 | } |
| 166 | 166 | |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | if (!is_null($this->indent) && is_string($message)) { |
| 116 | - $message = $this->indent . $message; |
|
| 116 | + $message = $this->indent.$message; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | return $message; |
@@ -93,24 +93,24 @@ |
||
| 93 | 93 | $columns = implode('_', $columnNames); |
| 94 | 94 | $tables = implode('_', $tableNames); |
| 95 | 95 | if (strlen($prefix) + strlen($tables) + strlen($columns) + 2 <= $this->getMaxIdentifierSize()) { |
| 96 | - $result = $prefix . '_' . $tables . '_' . $columns; |
|
| 96 | + $result = $prefix.'_'.$tables.'_'.$columns; |
|
| 97 | 97 | |
| 98 | 98 | return $upperCase === true ? strtoupper($result) : strtolower($result); |
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - $result = $prefix . '_' . |
|
| 102 | + $result = $prefix.'_'. |
|
| 103 | 103 | implode( |
| 104 | 104 | '', |
| 105 | 105 | array_merge( |
| 106 | 106 | array_map( |
| 107 | - function ($name) { |
|
| 107 | + function($name) { |
|
| 108 | 108 | return dechex(crc32($name)); |
| 109 | 109 | }, |
| 110 | 110 | $tableNames |
| 111 | 111 | ), |
| 112 | 112 | array_map( |
| 113 | - function ($name) { |
|
| 113 | + function($name) { |
|
| 114 | 114 | return dechex(crc32($name)); |
| 115 | 115 | }, |
| 116 | 116 | $columnNames |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | $extensionClassName = get_class($extension); |
| 148 | 148 | while ($extensionClassName) { |
| 149 | - $extensionAwareInterfaceName = $extensionClassName . self::EXTENSION_AWARE_INTERFACE_SUFFIX; |
|
| 149 | + $extensionAwareInterfaceName = $extensionClassName.self::EXTENSION_AWARE_INTERFACE_SUFFIX; |
|
| 150 | 150 | if (interface_exists($extensionAwareInterfaceName)) { |
| 151 | 151 | $result = $extensionAwareInterfaceName; |
| 152 | 152 | break; |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $msg = sprintf( |
| 166 | 166 | 'The extension aware interface for "%s" was not found. Make sure that "%s" interface is declared.', |
| 167 | 167 | get_class($extension), |
| 168 | - get_class($extension) . self::EXTENSION_AWARE_INTERFACE_SUFFIX |
|
| 168 | + get_class($extension).self::EXTENSION_AWARE_INTERFACE_SUFFIX |
|
| 169 | 169 | ); |
| 170 | 170 | } |
| 171 | 171 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $parts = explode('\\', $extensionAwareInterfaceName); |
| 188 | 188 | $className = array_pop($parts); |
| 189 | 189 | $extensionName = substr($className, 0, strlen($className) - strlen(self::EXTENSION_AWARE_INTERFACE_SUFFIX)); |
| 190 | - $setMethodName = 'set' . $extensionName; |
|
| 190 | + $setMethodName = 'set'.$extensionName; |
|
| 191 | 191 | |
| 192 | 192 | if (!method_exists($extensionAwareInterfaceName, $setMethodName)) { |
| 193 | 193 | throw new \RuntimeException( |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * @return bool |
| 122 | 122 | */ |
| 123 | 123 | public function executeUpMigration( |
| 124 | - Schema &$schema, |
|
| 124 | + Schema & $schema, |
|
| 125 | 125 | AbstractPlatform $platform, |
| 126 | 126 | Migration $migration, |
| 127 | 127 | $dryRun = false |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | if ($table->getColumn($columnName)->getLength() > MySqlPlatform::LENGTH_LIMIT_TINYTEXT) { |
| 289 | 289 | throw new InvalidNameException( |
| 290 | 290 | sprintf( |
| 291 | - 'Could not create index for column with length more than %s. ' . |
|
| 291 | + 'Could not create index for column with length more than %s. '. |
|
| 292 | 292 | 'Please correct "%s" column length "%s" in table in "%s" migration', |
| 293 | 293 | MySqlPlatform::LENGTH_LIMIT_TINYTEXT, |
| 294 | 294 | $columnName, |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | protected function getTableFromDiff(TableDiff $diff) |
| 309 | 309 | { |
| 310 | 310 | $changedColumns = array_map( |
| 311 | - function (ColumnDiff $columnDiff) { |
|
| 311 | + function(ColumnDiff $columnDiff) { |
|
| 312 | 312 | return $columnDiff->column; |
| 313 | 313 | }, |
| 314 | 314 | $diff->changedColumns |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | if (!empty($bundleMigrationDirectories)) { |
| 187 | 187 | uksort( |
| 188 | 188 | $bundleMigrationDirectories, |
| 189 | - function ($a, $b) { |
|
| 189 | + function($a, $b) { |
|
| 190 | 190 | return version_compare($a, $b); |
| 191 | 191 | } |
| 192 | 192 | ); |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | */ |
| 206 | 206 | protected function getBundleMigrationPath($bundlePath) |
| 207 | 207 | { |
| 208 | - return realpath(str_replace('/', DIRECTORY_SEPARATOR, $bundlePath . '/' . $this->migrationPath)); |
|
| 208 | + return realpath(str_replace('/', DIRECTORY_SEPARATOR, $bundlePath.'/'.$this->migrationPath)); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | if (count($versionedMigrations) > 1) { |
| 357 | 357 | usort( |
| 358 | 358 | $groupedMigrations[$bundleName][$version], |
| 359 | - function ($a, $b) { |
|
| 359 | + function($a, $b) { |
|
| 360 | 360 | $aOrder = 0; |
| 361 | 361 | if ($a instanceof OrderedMigrationInterface) { |
| 362 | 362 | $aOrder = $a->getOrder(); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | $options = []; |
| 35 | 35 | foreach ($optionNames as $name) { |
| 36 | - $method = "get" . $name; |
|
| 36 | + $method = "get".$name; |
|
| 37 | 37 | $val = $baseColumn->$method(); |
| 38 | 38 | if ($this->$method() !== $val) { |
| 39 | 39 | $options[$name] = $val; |