Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 340-345 (lines=6) @@
337
				ARRAY_FILTER_USE_BOTH
338
			);
339
		}
340
		if ( ! $changes && ! $this->askedNoChanges ) {
341
			$this->askedNoChanges = true;
342
			if ( ! $this->askToContinue( $input, $output, 'All changes were duplicates.' ) ) {
343
				return self::NO_CHANGE_EXIT;
344
			}
345
		}
346
		return self::OK_EXIT;
347
	}
348
@@ 622-627 (lines=6) @@
619
			return $ret;
620
		}
621
		$anyChangesWithContent = $this->doChangesHaveContent( $input, $output, $changes );
622
		if ( ! $anyChangesWithContent && ! $this->askedNoChanges ) {
623
			$this->askedNoChanges = true;
624
			if ( ! $this->askToContinue( $input, $output, 'There are no changes with content for this write.' ) ) {
625
				return self::NO_CHANGE_EXIT;
626
			}
627
		}
628
		$amendedVersion = null; // Make phpcs happy.
629
		$ret            = $this->doAmendChanges( $input, $output, $changelog, $changes, $amendedVersion );
630
		if ( self::OK_EXIT !== $ret ) {