rectorphp / rector

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
https://getrector.com
MIT License
8.8k stars 688 forks source link

[Symfony] [Console] [CodeQuality] input to SymfonyStyle #1768

Closed TomasVotruba closed 5 years ago

TomasVotruba commented 5 years ago
class SomeCommand extends Command
{
    protected function execute(InputInterface $input, OutputInterface $output): int
    {
-        $output->writeln(
-            [
-            '',
-            '<comment>Translation Files Updater</comment>',
-            '<comment>=========================</comment>',
-            ''
-            ]
-        );
+       $symfonyStyle->section('Translation Files Updater');

        foreach ($this->locales as $locale) {
-            $output->writeln('<info>update</info>');
+            $symfonyStyle->info('update');   
TomasVotruba commented 5 years ago

Handle in private project