@@ -502,6 +502,4 @@ |
||
502 | 502 | $out[] = is_string($key) ? sprintf(':%s => %s', $key, $outval) : $outval; |
503 | 503 | } |
504 | 504 | |
505 | - return sprintf('with parameters (%s)', implode(', ', $out)); |
|
506 | - } |
|
507 | -} |
|
505 | + return sprintf('with parameters (%s)', implode(', ', $out |
|
508 | 506 | \ No newline at end of file |
@@ -502,6 +502,4 @@ |
||
502 | 502 | $out[] = is_string($key) ? sprintf(':%s => %s', $key, $outval) : $outval; |
503 | 503 | } |
504 | 504 | |
505 | - return sprintf('with parameters (%s)', implode(', ', $out)); |
|
506 | - } |
|
507 | -} |
|
505 | + return sprintf('with parameters (%s)', implode(', ', $out |
|
508 | 506 | \ No newline at end of file |
@@ -502,6 +502,4 @@ |
||
502 | 502 | $out[] = is_string($key) ? sprintf(':%s => %s', $key, $outval) : $outval; |
503 | 503 | } |
504 | 504 | |
505 | - return sprintf('with parameters (%s)', implode(', ', $out)); |
|
506 | - } |
|
507 | -} |
|
505 | + return sprintf('with parameters (%s)', implode(', ', $out |
|
508 | 506 | \ No newline at end of file |
@@ -502,6 +502,4 @@ |
||
502 | 502 | $out[] = is_string($key) ? sprintf(':%s => %s', $key, $outval) : $outval; |
503 | 503 | } |
504 | 504 | |
505 | - return sprintf('with parameters (%s)', implode(', ', $out)); |
|
506 | - } |
|
507 | -} |
|
505 | + return sprintf('with parameters (%s)', implode(', ', $out |
|
508 | 506 | \ No newline at end of file |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | /** @var SchemaDiffProviderInterface */ |
104 | 104 | private $schemaProvider; |
105 | 105 | |
106 | - public function __construct(Configuration $configuration, $version, $class, SchemaDiffProviderInterface $schemaProvider=null) |
|
106 | + public function __construct(Configuration $configuration, $version, $class, SchemaDiffProviderInterface $schemaProvider = null) |
|
107 | 107 | { |
108 | 108 | $this->configuration = $configuration; |
109 | 109 | $this->outputWriter = $configuration->getOutputWriter(); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | if ($schemaProvider !== null) { |
116 | 116 | $this->schemaProvider = $schemaProvider; |
117 | 117 | } |
118 | - if($schemaProvider === null) { |
|
118 | + if ($schemaProvider === null) { |
|
119 | 119 | $schemaProvider = new SchemaDiffProvider($this->connection->getSchemaManager(), |
120 | 120 | $this->connection->getDatabasePlatform()); |
121 | 121 | $this->schemaProvider = LazySchemaDiffProvider::fromDefaultProxyFacyoryConfiguration($schemaProvider); |
@@ -221,11 +221,11 @@ discard block |
||
221 | 221 | { |
222 | 222 | $queries = $this->execute($direction, true); |
223 | 223 | |
224 | - if ( ! empty($this->params)) { |
|
224 | + if (!empty($this->params)) { |
|
225 | 225 | throw MigrationException::migrationNotConvertibleToSql($this->class); |
226 | 226 | } |
227 | 227 | |
228 | - $this->outputWriter->write("\n-- Version " . $this->version . "\n"); |
|
228 | + $this->outputWriter->write("\n-- Version ".$this->version."\n"); |
|
229 | 229 | |
230 | 230 | $sqlQueries = [$this->version => $queries]; |
231 | 231 | $sqlWriter = new SqlFileWriter( |
@@ -277,12 +277,12 @@ discard block |
||
277 | 277 | $this->state = self::STATE_PRE; |
278 | 278 | $fromSchema = $this->schemaProvider->createFromSchema(); |
279 | 279 | |
280 | - $this->migration->{'pre' . ucfirst($direction)}($fromSchema); |
|
280 | + $this->migration->{'pre'.ucfirst($direction)}($fromSchema); |
|
281 | 281 | |
282 | 282 | if ($direction === self::DIRECTION_UP) { |
283 | - $this->outputWriter->write("\n" . sprintf(' <info>++</info> migrating <comment>%s</comment>', $this->version) . "\n"); |
|
283 | + $this->outputWriter->write("\n".sprintf(' <info>++</info> migrating <comment>%s</comment>', $this->version)."\n"); |
|
284 | 284 | } else { |
285 | - $this->outputWriter->write("\n" . sprintf(' <info>--</info> reverting <comment>%s</comment>', $this->version) . "\n"); |
|
285 | + $this->outputWriter->write("\n".sprintf(' <info>--</info> reverting <comment>%s</comment>', $this->version)."\n"); |
|
286 | 286 | } |
287 | 287 | |
288 | 288 | $this->state = self::STATE_EXEC; |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | $toSchema = $this->schemaProvider->createToSchema($fromSchema); |
291 | 291 | $this->migration->$direction($toSchema); |
292 | 292 | |
293 | -<<<<<<< HEAD |
|
293 | +<< << <<< HEAD |
|
294 | 294 | $this->addSql($this->schemaProvider->getSqlDiffToMigrate($fromSchema, $toSchema)); |
295 | 295 | |
296 | 296 | $this->executeRegisteredSql($dryRun, $timeAllQueries); |
@@ -502,6 +502,4 @@ discard block |
||
502 | 502 | $out[] = is_string($key) ? sprintf(':%s => %s', $key, $outval) : $outval; |
503 | 503 | } |
504 | 504 | |
505 | - return sprintf('with parameters (%s)', implode(', ', $out)); |
|
506 | - } |
|
507 | -} |
|
505 | + return sprintf('with parameters (%s)', implode(', ', $out |
|
508 | 506 | \ No newline at end of file |
@@ -502,6 +502,4 @@ |
||
502 | 502 | $out[] = is_string($key) ? sprintf(':%s => %s', $key, $outval) : $outval; |
503 | 503 | } |
504 | 504 | |
505 | - return sprintf('with parameters (%s)', implode(', ', $out)); |
|
506 | - } |
|
507 | -} |
|
505 | + return sprintf('with parameters (%s)', implode(', ', $out |
|
508 | 506 | \ No newline at end of file |
@@ -502,6 +502,4 @@ |
||
502 | 502 | $out[] = is_string($key) ? sprintf(':%s => %s', $key, $outval) : $outval; |
503 | 503 | } |
504 | 504 | |
505 | - return sprintf('with parameters (%s)', implode(', ', $out)); |
|
506 | - } |
|
507 | -} |
|
505 | + return sprintf('with parameters (%s)', implode(', ', $out |
|
508 | 506 | \ No newline at end of file |