Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 868-874 (lines=7) @@
865
     */
866
    private function shouldExecuteMigration($direction, Version $version, $to, $migrated)
867
    {
868
        if ($direction === Version::DIRECTION_DOWN) {
869
            if (!in_array($version->getVersion(), $migrated)) {
870
                return false;
871
            }
872
873
            return $version->getVersion() > $to;
874
        }
875
876
        if ($direction === Version::DIRECTION_UP) {
877
            if (in_array($version->getVersion(), $migrated)) {
@@ 876-882 (lines=7) @@
873
            return $version->getVersion() > $to;
874
        }
875
876
        if ($direction === Version::DIRECTION_UP) {
877
            if (in_array($version->getVersion(), $migrated)) {
878
                return false;
879
            }
880
881
            return $version->getVersion() <= $to;
882
        }
883
    }
884
885
    /**