Update HasResourceKeyTrait.php #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check & fix styling | |
on: | |
push: | |
branches: | |
- master | |
- '*.x' | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
php-cs-fixer: | |
name: PHP-CS-Fixer | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Cache | |
uses: actions/cache@v4 | |
with: | |
path: .php-cs-fixer.cache | |
key: ${{ runner.OS }}-${{ github.repository }}-phpcsfixer-${{ github.sha }} | |
restore-keys: | | |
${{ runner.OS }}-${{ github.repository }}-phpcsfixer- | |
- name: Run PHP CS Fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
with: | |
args: --config=.php-cs-fixer.dist.php | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "style: apply automated php-cs-fixer changes" |