Documentation > Docker > add paragraph for PHP Coding Standards Fixer

This commit is contained in:
Meritoo
2018-06-16 14:17:35 +02:00
parent c99a099c31
commit ae3e82e233
2 changed files with 17 additions and 0 deletions

View File

@@ -7,3 +7,4 @@ Common and useful classes, methods, exceptions etc.
2. Reorganize documentation & update [Readme](README.md) 2. Reorganize documentation & update [Readme](README.md)
3. Docker: use project-related binaries globally 3. Docker: use project-related binaries globally
4. StyleCI & PHP Coding Standards Fixer: update configuration 4. StyleCI & PHP Coding Standards Fixer: update configuration
5. Documentation > Docker > add paragraph for PHP Coding Standards Fixer

View File

@@ -56,6 +56,22 @@ docker-compose run composer require <vendor>/<package>
docker-compose run composer remove <vendor>/<package> docker-compose run composer remove <vendor>/<package>
``` ```
# Coding Standards Fixer
Fix coding standard by running command:
```bash
docker-compose exec php-cli php-cs-fixer fix
```
Omit cache and run the Fixer from scratch by running command:
```bash
docker-compose exec php-cli rm .php_cs.cache && docker-compose exec php-cli php-cs-fixer fix
```
> [Want more?](https://cs.sensiolabs.org)
# Tests # Tests
### Prerequisites ### Prerequisites