Skip to content

Commit 7d9c2c9

Browse files
author
Andrew McLagan
committed
Fixing code formatting
1 parent fd2164a commit 7d9c2c9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ Tests are in `tests`.
5353
## Docker
5454
Docker binaries are located in `./bin` and can be run by simply executing `bin/phpunit` for example.
5555
* To run tests: `bin/phpunit`
56+
* To run code sniffer: `bin/phpcs` or `bin/phpcbf`
5657
* To run all supported versions: `bin/phpunit-versions`
5758
* To run composer : `bin/composer install` OR `bin/composer update`

bin/phpcbf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
docker run -it --rm \
6+
-e "TERM=xterm-256color" \
7+
-v "$PWD":/usr/src \
8+
-w /usr/src \
9+
php:7.2-cli-alpine \
10+
vendor/bin/phpcbf --standard=PSR1,PSR2 src tests
11+

0 commit comments

Comments
 (0)