Skip to content

Commit a869ae7

Browse files
committed
test
1 parent f3ad959 commit a869ae7

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/phpcs.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: PHP CodeSniffer
2+
23
on:
34
pull_request:
45
paths:
@@ -13,13 +14,8 @@ jobs:
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
17+
- name: Install PHP CodeSniffer
18+
run: curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
2019

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)

src/Test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class Test {
77
public function _foo ($bar) {
88

99

10-
1110
echo "a" . 1 ;
1211
}
1312

0 commit comments

Comments
 (0)