@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | /** @var SchemaDiffProviderInterface */ |
| 103 | 103 | private $schemaProvider; |
| 104 | 104 | |
| 105 | - public function __construct(Configuration $configuration, $version, $class, SchemaDiffProviderInterface $schemaProvider=null) |
|
| 105 | + public function __construct(Configuration $configuration, $version, $class, SchemaDiffProviderInterface $schemaProvider = null) |
|
| 106 | 106 | { |
| 107 | 107 | $this->configuration = $configuration; |
| 108 | 108 | $this->outputWriter = $configuration->getOutputWriter(); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | if ($schemaProvider !== null) { |
| 115 | 115 | $this->schemaProvider = $schemaProvider; |
| 116 | 116 | } |
| 117 | - if($schemaProvider === null) { |
|
| 117 | + if ($schemaProvider === null) { |
|
| 118 | 118 | $schemaProvider = new SchemaDiffProvider($this->connection->getSchemaManager(), |
| 119 | 119 | $this->connection->getDatabasePlatform()); |
| 120 | 120 | $this->schemaProvider = new LazySchemaDiffProvider(new LazyLoadingValueHolderFactory(), $schemaProvider); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | { |
| 209 | 209 | $queries = $this->execute($direction, true); |
| 210 | 210 | |
| 211 | - if ( ! empty($this->params)) { |
|
| 211 | + if (!empty($this->params)) { |
|
| 212 | 212 | throw MigrationException::migrationNotConvertibleToSql($this->class); |
| 213 | 213 | } |
| 214 | 214 | |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | $this->state = self::STATE_POST; |
| 285 | 285 | $this->migration->{'post' . ucfirst($direction)}($toSchema); |
| 286 | 286 | |
| 287 | - if (! $dryRun) { |
|
| 287 | + if (!$dryRun) { |
|
| 288 | 288 | if ($direction === self::DIRECTION_UP) { |
| 289 | 289 | $this->markMigrated(); |
| 290 | 290 | } else { |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | } |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | - $this->outputWriter->write(sprintf("\n <info>SS</info> skipped (Reason: %s)", $e->getMessage())); |
|
| 326 | + $this->outputWriter->write(sprintf("\n <info>SS</info> skipped (Reason: %s)", $e->getMessage())); |
|
| 327 | 327 | |
| 328 | 328 | $this->state = self::STATE_NONE; |
| 329 | 329 | |
@@ -386,12 +386,12 @@ discard block |
||
| 386 | 386 | |
| 387 | 387 | private function executeRegisteredSql($dryRun = false, $timeAllQueries = false) |
| 388 | 388 | { |
| 389 | - if (! $dryRun) { |
|
| 389 | + if (!$dryRun) { |
|
| 390 | 390 | if (!empty($this->sql)) { |
| 391 | 391 | foreach ($this->sql as $key => $query) { |
| 392 | 392 | $queryStart = microtime(true); |
| 393 | 393 | |
| 394 | - if ( ! isset($this->params[$key])) { |
|
| 394 | + if (!isset($this->params[$key])) { |
|
| 395 | 395 | $this->outputWriter->write(' <comment>-></comment> ' . $query); |
| 396 | 396 | $this->connection->executeQuery($query); |
| 397 | 397 | } else { |