mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-08 06:56:33 +02:00
Merge pull request #813 from nbkdotdev/php-csf-cmd
Fixed php-cs-fixer command for applying PSR2 rule
This commit is contained in:
@@ -50,7 +50,7 @@ If you have PHP_CodeSniffer, then you can fix the code layout problems reported
|
|||||||
Another option is to use the [PHP Coding Standards Fixer][phpcsfixer].
|
Another option is to use the [PHP Coding Standards Fixer][phpcsfixer].
|
||||||
It will show which kind of errors the code structure had before it fixed them.
|
It will show which kind of errors the code structure had before it fixed them.
|
||||||
|
|
||||||
php-cs-fixer fix -v --level=psr2 file.php
|
php-cs-fixer fix -v --rules=@PSR2 file.php
|
||||||
|
|
||||||
English is preferred for all symbol names and code infrastructure. Comments may be written in any language easily
|
English is preferred for all symbol names and code infrastructure. Comments may be written in any language easily
|
||||||
readable by all current and future parties who may be working on the codebase.
|
readable by all current and future parties who may be working on the codebase.
|
||||||
|
Reference in New Issue
Block a user