diff --git a/src/Task/PhpCsFixer.php b/src/Task/PhpCsFixer.php index dd9c1c0a..a223f866 100644 --- a/src/Task/PhpCsFixer.php +++ b/src/Task/PhpCsFixer.php @@ -71,11 +71,12 @@ public function run(ContextInterface $context): TaskResultInterface $this->formatter->resetCounter(); $arguments = $this->processBuilder->createArgumentsForCommand('php-cs-fixer'); - $arguments->add('--format=json'); + $arguments->add('--format=txt'); $arguments->add('--dry-run'); $arguments->addOptionalBooleanArgument('--allow-risky=%s', $config['allow_risky'], 'yes', 'no'); $arguments->addOptionalArgument('--cache-file=%s', $config['cache_file']); $arguments->addOptionalArgument('--config=%s', $config['config']); + $arguments->addOptionalArgument('--ansi', true); if ($rules = $config['rules']) { $arguments->add(sprintf(