#!/usr/bin/env shdir=$(d=${0%[/\\]*};cd"$d";cd"../nikic/php-parser/bin"&&pwd)# See if we are running in Cygwin by checking for cygpath programif command-v'cygpath'>/dev/null 2>&1;then# Cygwin paths start with /cygdrive/ which will break windows PHP,# so we need to translate the dir path to windows format. However# we could be using cygwin PHP which does not require this, so we# test if the path to PHP starts with /cygdrive/ rather than /usr/binif[[$(which php)== /cygdrive/*]];thendir=$(cygpath -m"$dir");fifidir=$(echo$dir | sed's/ /\ /g')"${dir}/php-parse""$@"