Skip to content

Commit

Permalink
Merge pull request #65 from paulsheldrake/issue_64
Browse files Browse the repository at this point in the history
Check for wordpress correctly
  • Loading branch information
lmakarov authored May 22, 2020
2 parents 569bb92 + 6b18016 commit 6fac54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpcs/phpcs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
if [[ -f "${PROJECT_ROOT}/${DOCROOT}/sites/default/settings.php" ]] || [[ -f "${PROJECT_ROOT}/${DOCROOT}/sites/default/default.settings.php" ]]; then
STANDARDS="${STANDARDS:-"Drupal,DrupalPractice"}"
EXTENSIONS="${EXTENSIONS:-"php,module,inc,install,test,profile,theme,css,info,txt,md"}";
elif [[ -f "${PROJECT_ROOT}/${DOCROOT}/wp-config" ]]; then
elif [[ -f "${PROJECT_ROOT}/${DOCROOT}/wp-config.php" ]]; then
STANDARDS="${STANDARDS:-"WordPress"}"
EXTENSIONS="${EXTENSIONS:-"php"}"
fi
Expand Down

0 comments on commit 6fac54e

Please sign in to comment.