Code Duplication    Length = 3-3 lines in 2 locations

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

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