Code Duplication    Length = 9-9 lines in 2 locations

lib/Doctrine/DBAL/Migrations/Configuration/Configuration.php 2 locations

@@ 515-523 (lines=9) @@
512
     *
513
     * @return Version[]
514
     */
515
    public function getMigratedVersions()
516
    {
517
        $this->connect();
518
        $this->createMigrationTable();
519
520
        $ret = $this->connection->fetchAll("SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName);
521
522
        return array_map('current', $ret);
523
    }
524
525
    /**
526
     * Returns an array of available migration version numbers.
@@ 667-675 (lines=9) @@
664
     *
665
     * @return integer
666
     */
667
    public function getNumberOfExecutedMigrations()
668
    {
669
        $this->connect();
670
        $this->createMigrationTable();
671
672
        $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName);
673
674
        return $result !== false ? $result : 0;
675
    }
676
677
    /**
678
     * Returns the total number of available migration versions