Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 642b5e4

Browse files
committed
Update contributor info with code-style requirements
1 parent c8d18c6 commit 642b5e4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ send a pull request (see bellow) with your contribution.
99

1010
1. Fork the project on GitHub
1111
2. Implement your code changes into separate branch
12-
3. Make sure all PHPUnit tests passes (see below). We also have Travis CI build which will automatically run tests on your pull request).
12+
3. Make sure all PHPUnit tests passes and code-style matches PSR-2 (see below). We also have Travis CI build which will automatically run tests on your pull request.
1313
4. When implementing notable change, fix or a new feature, add record to Unreleased section of [CHANGELOG.md](CHANGELOG.md)
1414
5. Submit your [pull request](https://github.com/facebook/php-webdriver/pulls) against community branch
1515

@@ -34,3 +34,10 @@ For the functional tests you must first download and start the selenium server,
3434

3535
java -jar selenium-server-standalone-2.48.2.jar -log selenium.log &
3636
./vendor/bin/phpunit --testsuite functional
37+
38+
### Check coding style
39+
40+
Your code-style should comply with [PSR-2](http://www.php-fig.org/psr/psr-2/). To make sure your code matches this requirement run:
41+
42+
./vendor/bin/php-cs-fixer fix --diff --dry-run
43+
./vendor/bin/phpcs --standard=PSR2 ./lib/ ./tests/

0 commit comments

Comments
 (0)