Skip to content

Commit

Permalink
bug #66 Fix no-ansi check in analyze command (tgalopin)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.4.x-dev branch.

Discussion
----------

Fix no-ansi check in analyze command

Commits
-------

f38b0be Fix no-ansi check in analyze command
  • Loading branch information
lyrixx committed May 30, 2017
2 parents d6b0edb + f38b0be commit ec9f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cli/Command/AnalyzeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

if ('txt' === $input->getOption('format')) {
if ($input->getOption('no-ansi')) {
if (!$output->isDecorated()) {
if ($noAnsiStatus !== $analysis->getStatusMessage()) {
$output->writeln($noAnsiStatus = $analysis->getStatusMessage());
}
Expand Down

0 comments on commit ec9f40b

Please sign in to comment.