Completed
Push — master ( fc24f1...12da9b )
by Mike
05:30 queued 03:03
created
lib/Doctrine/DBAL/Migrations/Version.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.