Skip to content

Commit

Permalink
#30 Expose phpcs as DDEV command.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirsman committed Aug 13, 2024
1 parent 93231c5 commit 1f63e71
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist/.ddev/commands/web/wunderio-core-phpcs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

## Description: Runs drush phpcs commands.
## Usage: phpcs
## Example: "ddev phpcs"

/var/www/html/.ddev/wunderio/core/_run-scripts.sh tooling-phpcs.sh "$@"
13 changes: 13 additions & 0 deletions dist/.ddev/wunderio/core/tooling-phpcs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

#
# Helper script to run phpcs.
#

set -eu
if [[ -n "${WUNDERIO_DEBUG:-}" ]]; then
set -x
fi
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/var/www/html/vendor/bin

php /var/www/html/vendor/bin/phpcs "$@"

0 comments on commit 1f63e71

Please sign in to comment.