Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 904-910 (lines=7) @@
901
     */
902
    private function shouldExecuteMigration($direction, Version $version, $to, $migrated)
903
    {
904
        if ($direction === Version::DIRECTION_DOWN) {
905
            if (!in_array($version->getVersion(), $migrated)) {
906
                return false;
907
            }
908
909
            return $version->getVersion() > $to;
910
        }
911
912
        if ($direction === Version::DIRECTION_UP) {
913
            if (in_array($version->getVersion(), $migrated)) {
@@ 912-918 (lines=7) @@
909
            return $version->getVersion() > $to;
910
        }
911
912
        if ($direction === Version::DIRECTION_UP) {
913
            if (in_array($version->getVersion(), $migrated)) {
914
                return false;
915
            }
916
917
            return $version->getVersion() <= $to;
918
        }
919
    }
920
921
    /**