Skip to content

Commit 719d247

Browse files
committed
Revamps the verbose output
1 parent d0f4e08 commit 719d247

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/Commands/ValidateCommand.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
282282
return Command::FAILURE;
283283
}
284284

285-
$verboseOutput = '+ Scanning directory ' . $directory . '.';
285+
$verboseOutput = '+ Scanning directory ' . \realpath($directory) . '.';
286286
$output->writeln($verboseOutput, OutputInterface::VERBOSITY_VERBOSE);
287287

288288
// Print deprecation notices for legacy options but do NOT change the exit code.
@@ -436,10 +436,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
436436
}
437437
} elseif ($chosenPreset) {
438438
try {
439-
440-
$verboseOutput = '+ Using the ' . $chosenPreset . ' language preset.';
441-
$output->writeln($verboseOutput, OutputInterface::VERBOSITY_VERBOSE);
442-
443439
$this->exportIgnoreAnalyser->setGlobPatternFromPreset($chosenPreset);
444440
} catch (PresetNotAvailable $e) {
445441
$warning = 'Warning: The chosen language preset ' . $chosenPreset . ' is not available. Maybe contribute it!?';
@@ -450,7 +446,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
450446
}
451447
}
452448

453-
$verboseOutput = '+ Checking .gitattributes file existence in ' . $directory . '.';
449+
$verboseOutput = '+ Checking .gitattributes file existence in ' . \realpath($directory) . '.';
454450
$output->writeln($verboseOutput, OutputInterface::VERBOSITY_VERBOSE);
455451
$outputContent = '';
456452

0 commit comments

Comments
 (0)