Code Duplication    Length = 3-3 lines in 2 locations

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

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