php-censor/docs/en/plugins/php_cs_fixes.md

29 lines
662 B
Markdown
Raw Normal View History

2016-07-19 11:12:28 +02:00
Plugin PHP Coding Standards Fixer
2017-01-04 13:22:20 +01:00
=================================
2016-07-19 11:12:28 +02:00
2016-07-17 16:20:35 +02:00
Runs PHP Coding Standards Fixer against your build.
2016-07-19 11:12:28 +02:00
Configuration
2017-01-04 13:22:20 +01:00
-------------
2016-07-19 11:12:28 +02:00
2016-07-17 16:20:35 +02:00
### Options
2016-07-19 11:12:28 +02:00
* **directory** [string, optional] - The directory in which PHP CS Fixer should work (default: `%BUILD_PATH%`)
* **args** [string, optional] - Command line args (in string format) to pass to PHP Coding Standards Fixer (default: ``)
2016-07-17 16:20:35 +02:00
2016-07-19 11:12:28 +02:00
### Examples
2016-07-17 16:20:35 +02:00
```yml
test:
php_cs_fixer:
directory: "./my/dir/path" # == "%BUILD_PATH%/my/dir/path"
args: "--rules=@PSR2 --diff --verbose"
2016-07-17 16:20:35 +02:00
```
```yml
test:
php_cs_fixer:
directory: "%BUILD_PATH%/my/dir/path"
args: "--rules=@PSR2"
```