overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhance display

llaville opened this issue · comments

Hello @overtrue

I've in mind to propose soon (probably tomorrow) a new version that will :

  • avoid hard-coded values in console input / options

v60-help

  • enhance display with PHP runtime / config file used and options like that

v60-dev

Are you agree ?

Wow it's a great idea! Thank you for the contribution.

@overtrue All branches are now up-to-date and implement this feature.

Before to release new versions v3, v4, v5 and v6, I want to fix also issue #163.
I'll try to fix it today, but no guarranty

@overtrue As I've worked on issue #163, I've re-worked again display improvement especially for options.
For example, it will give now

enhance_display

It's beautiful!

Very few line of code

        if ($verbosity >= OutputInterface::VERBOSITY_DEBUG) {
            $output->writeln('Options       :');
            foreach ($options as $name => $value) {
                $output->writeln(\sprintf("<comment>%13s</comment> > <info>%s</info>", $name, \json_encode($value, \JSON_UNESCAPED_SLASHES)));
            }
        }

Available in latest releases 3.3.1, 4.4.0, 5.4.1 and 6.0.3