Skip to content

Commit

Permalink
Add command for running PHP Code Beautifier and Fixer (phpcbf) (#16199)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo authored Nov 24, 2023
1 parent 588cd2b commit 27291cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@
"va:drush": "Run Drush transparently (all arguments will be passed).",
"va:npm": "Run NPM transparently (all arguments will be passed).",
"va:nuke": "Remove all Composer package and cache directories.",
"va:phpcbf": "Run PHP Code Beautifier and Fixer transparently (all arguments will be passed).",
"va:remove-git-dirs": "Remove .git directories within this directory, e.g. those created by Composer.",
"va:set-path": "Display a command for updating the path to include `./bin`.",
"va:ds:drupal": "Build the Drupal theme.",
Expand Down Expand Up @@ -622,6 +623,11 @@
"! ./scripts/should-run-directly.sh || ./scripts/nuke-composer-directories.sh",
"./scripts/should-run-directly.sh || ddev composer va:nuke --"
],
"va:phpcbf": [
"# Run PHP Code Beautifier and Fixer transparently (all arguments will be passed).",
"! ./scripts/should-run-directly.sh || bin/phpcbf -p --",
"./scripts/should-run-directly.sh || ddev composer va:phpcbf --"
],
"va:proxy:socks": [
"# Set up a SOCKS proxy.",
"./scripts/connect-socks.sh"
Expand Down

0 comments on commit 27291cf

Please sign in to comment.