Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 826-832 (lines=7) @@
823
     */
824
    private function shouldExecuteMigration($direction, Version $version, $to, $migrated)
825
    {
826
        if ($direction === Version::DIRECTION_DOWN) {
827
            if (!in_array($version->getVersion(), $migrated)) {
828
                return false;
829
            }
830
831
            return $version->getVersion() > $to;
832
        }
833
834
        if ($direction === Version::DIRECTION_UP) {
835
            if (in_array($version->getVersion(), $migrated)) {
@@ 834-840 (lines=7) @@
831
            return $version->getVersion() > $to;
832
        }
833
834
        if ($direction === Version::DIRECTION_UP) {
835
            if (in_array($version->getVersion(), $migrated)) {
836
                return false;
837
            }
838
839
            return $version->getVersion() <= $to;
840
        }
841
    }
842
843
    /**