File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 11name : PHP CodeSniffer
2+
23on :
34 pull_request :
45 paths :
1314 - uses : actions/checkout@v2
1415 with :
1516 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
20-
21- - uses : tinovyatkin/action-php-codesniffer@v1
22- with :
23- files : " **.php"
24- phpcs_path : php phpcs.phar
25- standard : phpcs.xml
17+ - name : Install PHP CodeSniffer
18+ run : curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
19+ - name : Modified Files
20+ run : git ls-files -om --exclude-standard
21+ - name : Run PHPCS
22+ 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 {
77 public function _foo ($ bar ) {
88
99
10-
1110 echo "a " . 1 ;
1211 }
1312
You can’t perform that action at this time.
0 commit comments