File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : PHP CodeSniffer
2
+
2
3
on :
3
4
pull_request :
4
5
paths :
13
14
- uses : actions/checkout@v2
14
15
with :
15
16
fetch-depth : 0
16
- - name : Install PHP_CodeSniffer
17
- run : |
18
- curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
19
- php phpcs.phar --version
17
+ - name : Install PHP CodeSniffer
18
+ run : curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
20
19
21
- - uses : tinovyatkin/action-php-codesniffer@v1
22
- with :
23
- files : " **.php"
24
- phpcs_path : php phpcs.phar
25
- standard : phpcs.xml
20
+ - name : Run PHPCS
21
+ run : php phpcs.phar ./phpcs.xml $(git ls-files -om --exclude-standard)
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ class Test {
7
7
public function _foo ($ bar ) {
8
8
9
9
10
-
11
10
echo "a " . 1 ;
12
11
}
13
12
You can’t perform that action at this time.
0 commit comments