Skip to content

Commit 137fca3

Browse files
Update ci.yml
1 parent 5e02767 commit 137fca3

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
@@ -29,12 +29,12 @@ jobs:
2929
# Lint PHP files (check for syntax errors)
3030
- name: Lint PHP files
3131
run: find . -type f -name '*.php' -exec php -l {} \;
32-
# Download PHP-CS-Fixer
33-
- name: Download PHP-CS-Fixer
32+
# Download PHP_CodeSniffer
33+
- name: Download PHP_CodeSniffer
3434
run: |
35-
wget https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer.phar
36-
chmod +x php-cs-fixer.phar
35+
wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
36+
chmod +x phpcs.phar
3737
38-
# Run PHP-CS-Fixer (check coding standards)
39-
- name: Run PHP-CS-Fixer
40-
run: ./php-cs-fixer.phar fix --dry-run --diff --verbose . || [ $? -eq 8 ]
38+
# Run PHP_CodeSniffer (check coding standards)
39+
- name: Run PHP_CodeSniffer
40+
run: ./phpcs.phar --standard=PSR12 .

0 commit comments

Comments
 (0)