@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | return $this->proxyFactory->createProxy( |
| 49 | 49 | Schema::class, |
| 50 | - function (& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) { |
|
| 50 | + function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) { |
|
| 51 | 51 | $initializer = null; |
| 52 | 52 | $wrappedObject = $originalSchemaManipulator->createFromSchema(); |
| 53 | 53 | |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | { |
| 65 | 65 | $originalSchemaManipulator = $this->originalSchemaManipulator; |
| 66 | 66 | |
| 67 | - if ($fromSchema instanceof LazyLoadingInterface && ! $fromSchema->isProxyInitialized()) { |
|
| 67 | + if ($fromSchema instanceof LazyLoadingInterface && !$fromSchema->isProxyInitialized()) { |
|
| 68 | 68 | return $this->proxyFactory->createProxy( |
| 69 | 69 | Schema::class, |
| 70 | - function (& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) { |
|
| 70 | + function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) { |
|
| 71 | 71 | $initializer = null; |
| 72 | 72 | $wrappedObject = $originalSchemaManipulator->createToSchema($fromSchema); |
| 73 | 73 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | if ( |
| 91 | 91 | $toSchema instanceof LazyLoadingInterface |
| 92 | - && ! $toSchema->isProxyInitialized() |
|
| 92 | + && !$toSchema->isProxyInitialized() |
|
| 93 | 93 | ) { |
| 94 | 94 | return []; |
| 95 | 95 | } |
@@ -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(); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $this->version = $version; |
| 113 | 113 | |
| 114 | 114 | $this->schemaProvider = $schemaProvider; |
| 115 | - if(is_null($this->schemaProvider)) { |
|
| 115 | + if (is_null($this->schemaProvider)) { |
|
| 116 | 116 | $schemaProvider = new SchemaDiffProvider($this->connection->getSchemaManager(), |
| 117 | 117 | $this->connection->getDatabasePlatform()); |
| 118 | 118 | $this->schemaProvider = new LazySchemaDiffProvider(new LazyLoadingValueHolderFactory(), $schemaProvider); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | { |
| 207 | 207 | $queries = $this->execute($direction, true); |
| 208 | 208 | |
| 209 | - if ( ! empty($this->params)) { |
|
| 209 | + if (!empty($this->params)) { |
|
| 210 | 210 | throw MigrationException::migrationNotConvertibleToSql($this->class); |
| 211 | 211 | } |
| 212 | 212 | |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | $this->state = self::STATE_POST; |
| 282 | 282 | $this->migration->{'post' . ucfirst($direction)}($toSchema); |
| 283 | 283 | |
| 284 | - if (! $dryRun) { |
|
| 284 | + if (!$dryRun) { |
|
| 285 | 285 | if ($direction === self::DIRECTION_UP) { |
| 286 | 286 | $this->markMigrated(); |
| 287 | 287 | } else { |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | } |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | - $this->outputWriter->write(sprintf("\n <info>SS</info> skipped (Reason: %s)", $e->getMessage())); |
|
| 323 | + $this->outputWriter->write(sprintf("\n <info>SS</info> skipped (Reason: %s)", $e->getMessage())); |
|
| 324 | 324 | |
| 325 | 325 | $this->state = self::STATE_NONE; |
| 326 | 326 | |
@@ -383,12 +383,12 @@ discard block |
||
| 383 | 383 | |
| 384 | 384 | private function executeRegisteredSql($dryRun = false, $timeAllQueries = false) |
| 385 | 385 | { |
| 386 | - if (! $dryRun) { |
|
| 386 | + if (!$dryRun) { |
|
| 387 | 387 | if (!empty($this->sql)) { |
| 388 | 388 | foreach ($this->sql as $key => $query) { |
| 389 | 389 | $queryStart = microtime(true); |
| 390 | 390 | |
| 391 | - if ( ! isset($this->params[$key])) { |
|
| 391 | + if (!isset($this->params[$key])) { |
|
| 392 | 392 | $this->outputWriter->write(' <comment>-></comment> ' . $query); |
| 393 | 393 | $this->connection->executeQuery($query); |
| 394 | 394 | } else { |