Skip to content
Open
Show file tree
Hide file tree
Changes from 9 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: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,25 @@ jobs:
needs: [composer]
strategy:
matrix:
command: ['php-cs-fixer fix -vvv --dry-run --diff', 'phpcs --extensions=php -p --standard=ruleset.xml .']
command: ['php-cs-fixer fix -vvv', 'phpcs --extensions=php -p --standard=ruleset.xml .']
steps:
- uses: actions/checkout@v4
- uses: actions/cache/restore@v4
with:
path: libraries/vendor
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
- name: Check PHP code style
id: check-codestyle
continue-on-error: true
env:
PHP_CS_FIXER_IGNORE_ENV: true
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
./libraries/vendor/bin/${{ matrix.command }}
- uses: parkerbxyz/suggest-changes@v2
- uses: parkerbxyz/suggest-changes@copilot/fix-86
with:
comment: 'Your code does not comply with our codestyle. Please commit the suggested changes.'
event: 'REQUEST_CHANGES'

code-style-js-css:
name: Check Javascript & CSS code style
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
*
* @since 4.0.0
*/
class BannersController extends ApiController
{
class BannersController extends ApiController {
/**
* The content type of the item.
*
Expand All @@ -38,4 +37,4 @@ class BannersController extends ApiController
* @since 3.0
*/
protected $default_view = 'banners';
}
}
Loading