PHP CS Fixer¶
The PSR-1 and PSR-2 Coding Standards fixer for your code.
http://cs.sensiolabs.org/
This page only contains legacy configuration. If you would like to run PHP CS Fixer, please run it as a regular command in the build environment.
Configuration¶
You can enable PHP CS Fixer with the following configuration:
tools:
php_cs_fixer: true
PSR1/PSR2 Fixes¶
If you would like to enable PSR1/PSR2 compliant fixes for your code, you can do so with the following configuration:
tools:
php_cs_fixer:
config: { level: psr2 } # or psr1 if you would just like to get fixes for PSR1
Config Reference¶
The following is a complete configuration reference:
tools:
# Runs the PHP CS Fixer (http://cs.sensiolabs.org/).
php_cs_fixer:
extensions:
# Default:
- php
fixers: []
enabled: false
filter:
paths: []
excluded_paths: []