Code Duplication    Length = 3-3 lines in 2 locations

projects/packages/changelogger/src/WriteCommand.php 2 locations

@@ 491-493 (lines=3) @@
488
				$output->writeln( "Cannot compare $version with $curver: {$ex->getMessage()}", OutputInterface::VERBOSITY_DEBUG );
489
				$cmp = 1;
490
			}
491
			if ( $cmp < 0 && ! $this->askToContinue( $input, $output, "The most recent version in the changelog is $curver, which comes after $version." ) ) {
492
				return self::ASKED_EXIT;
493
			}
494
			if ( 0 === $cmp && ! $this->askToContinue( $input, $output, "The most recent version in the changelog is $curver, which is equivalent to $version." ) ) {
495
				return self::ASKED_EXIT;
496
			}
@@ 494-496 (lines=3) @@
491
			if ( $cmp < 0 && ! $this->askToContinue( $input, $output, "The most recent version in the changelog is $curver, which comes after $version." ) ) {
492
				return self::ASKED_EXIT;
493
			}
494
			if ( 0 === $cmp && ! $this->askToContinue( $input, $output, "The most recent version in the changelog is $curver, which is equivalent to $version." ) ) {
495
				return self::ASKED_EXIT;
496
			}
497
		}
498
		return $version;
499
	}