Completed
Push — master ( 7308bc...e599b0 )
by Mike
7s
created
lib/Doctrine/DBAL/Migrations/Configuration/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         $this->createMigrationTable();
494 494
 
495 495
         $version = $this->connection->fetchColumn(
496
-            "SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName . " WHERE " . $this->migrationsColumnName . " = ?",
496
+            "SELECT ".$this->migrationsColumnName." FROM ".$this->migrationsTableName." WHERE ".$this->migrationsColumnName." = ?",
497 497
             [$version->getVersion()]
498 498
         );
499 499
 
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
     {
510 510
         $this->createMigrationTable();
511 511
 
512
-        $ret = $this->connection->fetchAll("SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName);
512
+        $ret = $this->connection->fetchAll("SELECT ".$this->migrationsColumnName." FROM ".$this->migrationsTableName);
513 513
 
514 514
         return array_map('current', $ret);
515 515
     }
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
             foreach ($this->migrations as $migration) {
554 554
                 $migratedVersions[] = sprintf("'%s'", $migration->getVersion());
555 555
             }
556
-            $where = " WHERE " . $this->migrationsColumnName . " IN (" . implode(', ', $migratedVersions) . ")";
556
+            $where = " WHERE ".$this->migrationsColumnName." IN (".implode(', ', $migratedVersions).")";
557 557
         }
558 558
 
559 559
         $sql = sprintf("SELECT %s FROM %s%s ORDER BY %s DESC",
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 
604 604
         $versions = array_map('strval', array_keys($this->migrations));
605 605
         array_unshift($versions, '0');
606
-        $offset = array_search((string)$version, $versions);
606
+        $offset = array_search((string) $version, $versions);
607 607
         if ($offset === false || !isset($versions[$offset + $delta])) {
608 608
             // Unknown version or delta out of bounds.
609 609
             return null;
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
     {
660 660
         $this->createMigrationTable();
661 661
 
662
-        $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName);
662
+        $result = $this->connection->fetchColumn("SELECT COUNT(".$this->migrationsColumnName.") FROM ".$this->migrationsTableName);
663 663
 
664 664
         return $result !== false ? $result : 0;
665 665
     }
@@ -845,7 +845,7 @@  discard block
 block discarded – undo
845 845
      */
846 846
     private function ensureMigrationClassExists($class)
847 847
     {
848
-        if ( ! class_exists($class)) {
848
+        if (!class_exists($class)) {
849 849
             throw MigrationException::migrationClassNotFound($class, $this->getMigrationsNamespace());
850 850
         }
851 851
     }
Please login to merge, or discard this patch.