Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 915-921 (lines=7) @@
912
     */
913
    private function shouldExecuteMigration($direction, Version $version, $to, $migrated)
914
    {
915
        if ($direction === Version::DIRECTION_DOWN) {
916
            if ( ! in_array($version->getVersion(), $migrated)) {
917
                return false;
918
            }
919
920
            return $version->getVersion() > $to;
921
        }
922
923
        if ($direction === Version::DIRECTION_UP) {
924
            if (in_array($version->getVersion(), $migrated)) {
@@ 923-929 (lines=7) @@
920
            return $version->getVersion() > $to;
921
        }
922
923
        if ($direction === Version::DIRECTION_UP) {
924
            if (in_array($version->getVersion(), $migrated)) {
925
                return false;
926
            }
927
928
            return $version->getVersion() <= $to;
929
        }
930
    }
931
932
    /**