Skip to content

refactor: even more consistency + reducing the size of the bundled bi… #178

refactor: even more consistency + reducing the size of the bundled bi…

refactor: even more consistency + reducing the size of the bundled bi… #178

# Check and fix PHP code style issues
# Pull request: automatically fix PHP code style issues
# Main branch: only check PHP code style issues since we don't have write permission
name: Check and fix PHP code style issues
on:
push:
paths:
- '**.php'
pull_request:
paths:
- '**.php'
permissions:
contents: write
jobs:
php-code-styling:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Check PHP code style issues
if: github.event_name == 'push'
uses: aglipanci/[email protected]
with:
verboseMode: true
testMode: true
- name: Fix PHP code style issues
if: github.event_name == 'pull_request'
uses: aglipanci/[email protected]
- name: Commit changes
if: github.event_name == 'pull_request'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling