Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 268-270 (lines=3) @@
265
	protected function loadChanges( InputInterface $input, OutputInterface $output ) {
266
		$dir = Config::changesDir();
267
		if ( ! is_dir( $dir ) ) {
268
			if ( ! $this->askToContinue( $input, $output, 'Changes directory does not exist!' ) ) {
269
				return array( self::ASKED_EXIT, null, null );
270
			}
271
			return array( self::OK_EXIT, array(), array() );
272
		}
273
@@ 283-285 (lines=3) @@
280
		}
281
		if ( ! $changes && ! $this->askedNoChanges ) {
282
			$this->askedNoChanges = true;
283
			if ( ! $this->askToContinue( $input, $output, 'No changes were found!' ) ) {
284
				return array( self::NO_CHANGE_EXIT, null, null );
285
			}
286
		}
287
		return array( self::OK_EXIT, $changes, $files );
288
	}