Files
apps.prometeysev.ru/vendor/bin/phpcs
T

10 lines
315 B
Bash
Raw Normal View History

2026-10-22 00:22:57 +03:00
#!/usr/bin/env sh
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../squizlabs/php_codesniffer/bin" && pwd)
if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
fi
"${dir}/phpcs" "$@"