Skip to content

Commit 2830d38

Browse files
Update ci.yml
1 parent b26d1fa commit 2830d38

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
- name: Lint PHP files
3131
run: find . -type f -name '*.php' -exec php -l {} \;
3232

33-
# Download PHP_CodeSniffer
34-
- name: Download PHP_CodeSniffer
33+
# Download PHP-CS-Fixer
34+
- name: Download PHP-CS-Fixer
3535
run: |
36-
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
37-
chmod +x phpcs.phar
36+
wget https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer.phar
37+
chmod +x php-cs-fixer.phar
3838
39-
# Run PHP_CodeSniffer (check coding standards)
40-
- name: Run PHP_CodeSniffer
41-
run: ./phpcs.phar --standard=PSR12 .
39+
# Run PHP-CS-Fixer (check coding standards)
40+
- name: Run PHP-CS-Fixer
41+
run: ./php-cs-fixer.phar fix --dry-run --diff --verbose

0 commit comments

Comments
 (0)