Skip to content

Commit d8dd22e

Browse files
committed
Enhancement: Extract configuration file for phpcs
1 parent 6104ac7 commit d8dd22e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ install:
2121
- travis_retry composer install --prefer-dist --no-interaction
2222

2323
script:
24-
- vendor/bin/phpcs src --standard=psr2 -spn
24+
- vendor/bin/phpcs
2525
- vendor/bin/phpunit --coverage-text --exclude-group integration

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $ composer global require squizlabs/php_codesniffer
4848
Then you can `cd` into the Facebook PHP SDK folder and run Code Sniffer against the `src/` directory.
4949

5050
``` bash
51-
$ ~/.composer/vendor/bin/phpcs src --standard=psr2 -spn
51+
$ ~/.composer/vendor/bin/phpcs
5252
```
5353

5454
**Happy coding**!

phpcs.xml.dist

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<file>src/</file>
4+
<arg value="spn" />
5+
<rule ref="PSR2" />
6+
</ruleset>

0 commit comments

Comments
 (0)