Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/Migrations/Tools/Console/Command/VersionCommand.php 2 locations

@@ 225-231 (lines=7) @@
222
223
        $marked = false;
224
225
        if ($this->markMigrated && $executedMigrations->hasMigration($version)) {
226
            if (! $all) {
227
                throw VersionAlreadyExists::new($version);
228
            }
229
230
            $marked = true;
231
        }
232
233
        if (! $this->markMigrated && ! $executedMigrations->hasMigration($version)) {
234
            if (! $all) {
@@ 233-239 (lines=7) @@
230
            $marked = true;
231
        }
232
233
        if (! $this->markMigrated && ! $executedMigrations->hasMigration($version)) {
234
            if (! $all) {
235
                throw VersionDoesNotExist::new($version);
236
            }
237
238
            $marked = true;
239
        }
240
241
        if ($marked === true) {
242
            return;