Skip to content

Add php-cs-fixer

Nick Sellen requested to merge add-code-sniffer into master

Added ./scripts/php-cs-fixer http://cs.sensiolabs.org/.

We can use it to keep php style consistent.

A nice command to show what it would do (and return non-zero exit code):

./scripts/php-cs-fixer fix app/bezirk --dry-run --diff --verbose

To fix all the fixable stuff:

./scripts/php-cs-fixer fix app/bezirk

By default it is using "symfony" standard, which seems a good option.

Merge request reports