Skip to content

Commit e962f07

Browse files
authored
Merge pull request #3 from matomo-org/phpstan-changes
Changed to elseIf to handle case where normal and ddev both setup if present
2 parents 13b71a2 + 32735c2 commit e962f07

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.git-hooks-matomo/pre-push

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ if command -v php >/dev/null 2>&1; then
3838
COMMAND="${MATOMO_DIR}/vendor/bin/phpstan"
3939
PLUGIN_PATH=''
4040
fi
41-
fi
42-
# Use ddev if setup (overridding local setup)
43-
if command -v ddev >/dev/null 2>&1; then
41+
elif command -v ddev >/dev/null 2>&1; then
42+
# Use ddev if setup (overridding local setup)
4443
if [ -d "$MATOMO_DIR/.ddev" ]; then
4544
cd "$MATOMO_DIR" || exit 1
4645
if ddev status 2>&1 > /dev/null; then

0 commit comments

Comments
 (0)