Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 523-531 (lines=9) @@
520
     *
521
     * @return Version[]
522
     */
523
    public function getMigratedVersions()
524
    {
525
        $this->connect();
526
        $this->createMigrationTable();
527
528
        $ret = $this->connection->fetchAll("SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName);
529
530
        return array_map('current', $ret);
531
    }
532
533
    /**
534
     * Returns an array of available migration version numbers.
@@ 699-707 (lines=9) @@
696
     *
697
     * @return integer
698
     */
699
    public function getNumberOfExecutedMigrations()
700
    {
701
        $this->connect();
702
        $this->createMigrationTable();
703
704
        $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName);
705
706
        return $result !== false ? $result : 0;
707
    }
708
709
    /**
710
     * Returns the total number of available migration versions