mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-07 22:46:39 +02:00
Rephrased example how run phpcs manually from shell.
This commit is contained in:
@@ -41,8 +41,9 @@ And you can run phpcs manually from shell:
|
|||||||
phpcs -sw --standard=PSR2 file.php
|
phpcs -sw --standard=PSR2 file.php
|
||||||
|
|
||||||
It will show errors and descriptions how to fix them.
|
It will show errors and descriptions how to fix them.
|
||||||
And it can be very helpful to build own git hook, that will be avoid push branches into your repo that
|
It can also be helpful to include this command in a git hook.
|
||||||
violate standards.
|
That way branches which contain violations against the chosen standard cannot enter the repository
|
||||||
|
until those violations have been fixed.
|
||||||
|
|
||||||
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