Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 795-801 (lines=7) @@
792
     */
793
    private function shouldExecuteMigration($direction, Version $version, $to, $migrated)
794
    {
795
        if ($direction === Version::DIRECTION_DOWN) {
796
            if (!in_array($version->getVersion(), $migrated)) {
797
                return false;
798
            }
799
800
            return $version->getVersion() > $to;
801
        }
802
803
        if ($direction === Version::DIRECTION_UP) {
804
            if (in_array($version->getVersion(), $migrated)) {
@@ 803-809 (lines=7) @@
800
            return $version->getVersion() > $to;
801
        }
802
803
        if ($direction === Version::DIRECTION_UP) {
804
            if (in_array($version->getVersion(), $migrated)) {
805
                return false;
806
            }
807
808
            return $version->getVersion() <= $to;
809
        }
810
    }
811
812
    /**