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 +9
-13
lines changed Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 16
16
- COMPOSER_ARGS="--no-interaction"
17
17
18
18
matrix :
19
- fast_finish : true
20
19
include :
21
20
- php : 5.6
22
21
env :
23
22
- DEPS=lowest
24
23
- php : 5.6
25
24
env :
26
25
- DEPS=locked
27
- - TEST_COVERAGE=true
28
26
- LEGACY_DEPS="phpunit/phpunit zendframework/zend-code"
29
27
- php : 5.6
30
28
env :
31
29
- DEPS=latest
30
+ - TEST_COVERAGE=true
32
31
- php : 7
33
32
env :
34
33
- DEPS=lowest
@@ -85,8 +84,7 @@ install:
85
84
- stty cols 120 && composer show
86
85
87
86
script :
88
- - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
89
- - if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
87
+ - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
90
88
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
91
89
92
90
after_script :
Original file line number Diff line number Diff line change @@ -77,24 +77,24 @@ To do so:
77
77
78
78
## Running Coding Standards Checks
79
79
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
81
81
standards 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.
83
83
84
84
To run checks only:
85
85
86
86
``` console
87
- $ ./vendor/bin/php- cs-fixer fix . -v --diff --dry-run --config-file=.php_cs
87
+ $ composer cs-check
88
88
```
89
89
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
+
92
92
93
93
``` console
94
- $ ./vendor/bin/php- cs-fixer fix . -v --diff --config-file=.php_cs
94
+ $ composer cs-fix
95
95
```
96
96
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
98
98
they pass, and make sure you add and commit the changes after verification.
99
99
100
100
## Recommended Workflow for Contributions
Original file line number Diff line number Diff line change 5
5
<!-- Paths to check -->
6
6
<file >src</file >
7
7
<file >test</file >
8
- <exclude-pattern >test/_files/*</exclude-pattern >
9
- <exclude-pattern >test/TestAsset/*</exclude-pattern >
10
8
</ruleset >
You can’t perform that action at this time.
0 commit comments