1
0
mirror of https://github.com/danog/dl2cloud.git synced 2024-12-13 09:47:35 +01:00
dl2cloud/dropbox-sdk-php-1.1.5/support/check-style-codesniffer
2016-05-11 13:32:34 +02:00

19 lines
461 B
Bash
Executable File

#!/bin/sh
# Locate the script file. Cross symlinks if necessary.
loc="$0"
while [ -h "$loc" ]; do
ls=`ls -ld "$loc"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
loc="$link" # Absolute link
else
loc="`dirname "$loc"`/$link" # Relative link
fi
done
script_dir=`dirname "$loc"`
top_dir=`cd "$script_dir/.."; pwd`
"$top_dir/vendor/bin/phpcs" -s --standard="$script_dir/codesniffer.xml" "$top_dir/"{lib,test,examples}