Completed
Push — master ( e46858...d7101c )
by Christophe
10s
created
lib/Doctrine/DBAL/Migrations/Configuration/Configuration.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
         $this->createMigrationTable();
501 501
 
502 502
         $version = $this->connection->fetchColumn(
503
-            "SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName . " WHERE " . $this->migrationsColumnName . " = ?",
503
+            "SELECT ".$this->migrationsColumnName." FROM ".$this->migrationsTableName." WHERE ".$this->migrationsColumnName." = ?",
504 504
             [$version->getVersion()]
505 505
         );
506 506
 
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
         $this->connect();
518 518
         $this->createMigrationTable();
519 519
 
520
-        $ret = $this->connection->fetchAll("SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName);
520
+        $ret = $this->connection->fetchAll("SELECT ".$this->migrationsColumnName." FROM ".$this->migrationsTableName);
521 521
 
522 522
         return array_map('current', $ret);
523 523
     }
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
             foreach ($this->migrations as $migration) {
563 563
                 $migratedVersions[] = sprintf("'%s'", $migration->getVersion());
564 564
             }
565
-            $where = " WHERE " . $this->migrationsColumnName . " IN (" . implode(', ', $migratedVersions) . ")";
565
+            $where = " WHERE ".$this->migrationsColumnName." IN (".implode(', ', $migratedVersions).")";
566 566
         }
567 567
 
568 568
         $sql = sprintf("SELECT %s FROM %s%s ORDER BY %s DESC",
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
 
613 613
         $versions = array_map('strval', array_keys($this->migrations));
614 614
         array_unshift($versions, '0');
615
-        $offset = array_search((string)$version, $versions);
615
+        $offset = array_search((string) $version, $versions);
616 616
         if ($offset === false || !isset($versions[$offset + $delta])) {
617 617
             // Unknown version or delta out of bounds.
618 618
             return null;
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
         $this->connect();
694 694
         $this->createMigrationTable();
695 695
 
696
-        $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName);
696
+        $result = $this->connection->fetchColumn("SELECT COUNT(".$this->migrationsColumnName.") FROM ".$this->migrationsTableName);
697 697
 
698 698
         return $result !== false ? $result : 0;
699 699
     }
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
      * @param DateTimeInterface|null $now Defaults to the current time in UTC
839 839
      * @return string The newly generated version
840 840
      */
841
-    public function generateVersionNumber(\DateTimeInterface $now=null)
841
+    public function generateVersionNumber(\DateTimeInterface $now = null)
842 842
     {
843 843
         $now = $now ?: new \DateTime('now', new \DateTimeZone('UTC'));
844 844
 
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
      */
912 912
     private function ensureMigrationClassExists($class)
913 913
     {
914
-        if ( ! class_exists($class)) {
914
+        if (!class_exists($class)) {
915 915
             throw MigrationException::migrationClassNotFound($class, $this->getMigrationsNamespace());
916 916
         }
917 917
     }
Please login to merge, or discard this patch.