Skip to content

Commit

Permalink
Fix PHPCS syntaxes for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Feb 1, 2021
1 parent fa10f56 commit f67b375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions bin/duster-phpcs-fix
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

set -e

DIR="$(dirname "$(readlink -f "$0")")"
vendor/bin/php-cs-fixer fix --using-cache=no --config=${DIR}/../configs/.php_cs.dist "${@}"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

./vendor/bin/php-cs-fixer fix --using-cache=no --config=${DIR}/../configs/.php_cs.dist ./

4 changes: 2 additions & 2 deletions bin/duster-phpcs-lint
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

DIR="$(dirname "$(readlink -f "$0")")"
${DIR}/phpcs --standard=${DIR}/../configs/.phpcs.xml.dist "${@}"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
./vendor/bin/phpcs --standard=${DIR}/../configs/.phpcs.xml.dist ./

0 comments on commit f67b375

Please sign in to comment.