This repository was archived by the owner on Apr 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,7 @@ install:
8484 - stty cols 120 && composer show
8585
8686script :
87- - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
88- - if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
87+ - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
8988 - if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
9089
9190after_script :
Original file line number Diff line number Diff line change @@ -77,24 +77,24 @@ To do so:
7777
7878## Running Coding Standards Checks
7979
80- This component uses [ php-cs-fixer ] ( http ://cs.sensiolabs.org/ ) for coding
80+ This component uses [ phpcs ] ( https ://github.com/squizlabs/PHP_CodeSniffer ) for coding
8181standards checks, and provides configuration for our selected checks.
82- ` php-cs-fixer ` is installed by default via Composer.
82+ ` phpcs ` is installed by default via Composer.
8383
8484To run checks only:
8585
8686``` console
87- $ ./vendor/bin/php- cs-fixer fix . -v --diff --dry-run --config-file=.php_cs
87+ $ composer cs-check
8888```
8989
90- To have ` php-cs-fixer ` attempt to fix problems for you, omit the ` --dry-run `
91- flag:
90+ ` phpcs ` also includes a tool for fixing most CS violations, ` phpcbf ` :
91+
9292
9393``` console
94- $ ./vendor/bin/php- cs-fixer fix . -v --diff --config-file=.php_cs
94+ $ composer cs-fix
9595```
9696
97- If you allow php-cs-fixer to fix CS issues, please re-run the tests to ensure
97+ If you allow ` phpcbf ` to fix CS issues, please re-run the tests to ensure
9898they pass, and make sure you add and commit the changes after verification.
9999
100100## Recommended Workflow for Contributions
Original file line number Diff line number Diff line change 55 <!-- Paths to check -->
66 <file >src</file >
77 <file >test</file >
8- <exclude-pattern >test/_files/*</exclude-pattern >
9- <exclude-pattern >test/TestAsset/*</exclude-pattern >
108</ruleset >
You can’t perform that action at this time.
0 commit comments