Code Duplication    Length = 9-9 lines in 2 locations

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

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