Completed
Pull Request — master (#188)
by
unknown
02:48
created
lib/Doctrine/DBAL/Migrations/Version.php 7 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -502,6 +502,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -502,6 +502,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -502,6 +502,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -502,6 +502,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +9 added lines, -11 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -502,6 +502,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -502,6 +502,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.