Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 844-850 (lines=7) @@
841
     */
842
    private function shouldExecuteMigration($direction, Version $version, $to, $migrated)
843
    {
844
        if ($direction === Version::DIRECTION_DOWN) {
845
            if (!in_array($version->getVersion(), $migrated)) {
846
                return false;
847
            }
848
849
            return $version->getVersion() > $to;
850
        }
851
852
        if ($direction === Version::DIRECTION_UP) {
853
            if (in_array($version->getVersion(), $migrated)) {
@@ 852-858 (lines=7) @@
849
            return $version->getVersion() > $to;
850
        }
851
852
        if ($direction === Version::DIRECTION_UP) {
853
            if (in_array($version->getVersion(), $migrated)) {
854
                return false;
855
            }
856
857
            return $version->getVersion() <= $to;
858
        }
859
    }
860
861
    /**