Skip to content

Commit

Permalink
Merge pull request #7922 from live627/cs-fixer
Browse files Browse the repository at this point in the history
add script shortcut to `php-cs-fixer`
  • Loading branch information
Sesquipedalian authored Dec 21, 2023
2 parents f2b546c + 6772b4e commit e2a48e7
Show file tree
Hide file tree
Showing 3 changed files with 593 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:

- run: php -v

- run: composer lint

- name: Checking for sign off (GPG also accepted)
run: php ./vendor/simplemachines/build-tools/check-signed-off.php

Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"simplemachines/build-tools": "dev-release-3.0"
"simplemachines/build-tools": "dev-release-3.0",
"friendsofphp/php-cs-fixer": "^3.40"
},
"scripts": {
"lint": "php-cs-fixer check --diff",
"lint-fix": "php-cs-fixer fix -v"
},
"config": {
"platform": {
"php": "8.0.0"
}
}
}
}
Loading

0 comments on commit e2a48e7

Please sign in to comment.