From ae3e82e23368237a372e8ff84312bb2c29829425 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sat, 16 Jun 2018 14:17:35 +0200 Subject: [PATCH] Documentation > Docker > add paragraph for PHP Coding Standards Fixer --- CHANGELOG.md | 1 + docs/Development.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e566c8e..c6658b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,3 +7,4 @@ Common and useful classes, methods, exceptions etc. 2. Reorganize documentation & update [Readme](README.md) 3. Docker: use project-related binaries globally 4. StyleCI & PHP Coding Standards Fixer: update configuration +5. Documentation > Docker > add paragraph for PHP Coding Standards Fixer diff --git a/docs/Development.md b/docs/Development.md index 4bc2c84..545b3dd 100644 --- a/docs/Development.md +++ b/docs/Development.md @@ -56,6 +56,22 @@ docker-compose run composer require / docker-compose run composer remove / ``` +# 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 ### Prerequisites