I have a laravel application (created with composer) that I am trying to ensure meets PHP coding standards (level PSR-1). I run:
$ phpcs --standard=PSR1 my_app/
And within a few seconds it returns with just a new, empty, ready-to-go command line:
$
Does this mean my code meets all requirements and standards in PSR-1? It does the same with just:
$ phpcs my_app/
$ phpcs --standard=PEAR my_app/
$ phpcs --standard=PSR1 --report=summary lauras_app/
I just want to make sure that if the commands return nothing, that means my code is in standard. Thank you!
Phpcs does not output anything if it does detect no errors. From their doc:
There are 2 different options to see what
phpcsis doing.Using
show_progressor
-p.The second option is to use the verbose flag
-v. You can set it up to-vvvto increase the details.