Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/php-cs-stan-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ jobs:
run: 'composer install --prefer-dist --no-interaction'

- name: 'Run PHP CodeSniffer'
run: vendor/bin/phpcs
run: |
if composer run --list | grep -q "cs-check"; then
composer run cs-check
else
vendor/bin/phpcs
fi

stan:
name: 'Static code analyzer'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/php-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ jobs:
run: 'composer install --prefer-dist --no-interaction'

- name: 'Run PHP CodeSniffer'
run: vendor/bin/phpcs -n
run: |
if composer run --list | grep -q "cs-check"; then
composer run cs-check
else
vendor/bin/phpcs -n
fi