Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 892-898 (lines=7) @@
889
     */
890
    private function shouldExecuteMigration($direction, Version $version, $to, $migrated)
891
    {
892
        if ($direction === Version::DIRECTION_DOWN) {
893
            if (!in_array($version->getVersion(), $migrated)) {
894
                return false;
895
            }
896
897
            return $version->getVersion() > $to;
898
        }
899
900
        if ($direction === Version::DIRECTION_UP) {
901
            if (in_array($version->getVersion(), $migrated)) {
@@ 900-906 (lines=7) @@
897
            return $version->getVersion() > $to;
898
        }
899
900
        if ($direction === Version::DIRECTION_UP) {
901
            if (in_array($version->getVersion(), $migrated)) {
902
                return false;
903
            }
904
905
            return $version->getVersion() <= $to;
906
        }
907
    }
908
909
    /**