Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 157-162 (lines=6) @@
154
        }
155
156
        $version = $this->configuration->getVersion($version);
157
        if ($this->markMigrated && $this->configuration->hasVersionMigrated($version)) {
158
            if (! $all) {
159
                throw new \InvalidArgumentException(sprintf('The version "%s" already exists in the version table.', $version));
160
            }
161
            $marked = true;
162
        }
163
164
        if ( ! $this->markMigrated && ! $this->configuration->hasVersionMigrated($version)) {
165
            if (! $all) {
@@ 164-169 (lines=6) @@
161
            $marked = true;
162
        }
163
164
        if ( ! $this->markMigrated && ! $this->configuration->hasVersionMigrated($version)) {
165
            if (! $all) {
166
                throw new \InvalidArgumentException(sprintf('The version "%s" does not exists in the version table.', $version));
167
            }
168
            $marked = false;
169
        }
170
171
        if ( ! isset($marked)) {
172
            if ($this->markMigrated) {