1@echo off
2REM PHP_CodeSniffer tokenizes PHP code and detects violations of a
3REM defined set of coding standards.
4REM
5REM PHP version 5
6REM
7REM @category  PHP
8REM @package   PHP_CodeSniffer
9REM @author    Greg Sherwood <gsherwood@squiz.net>
10REM @author    Marc McIntyre <mmcintyre@squiz.net>
11REM @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
12REM @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
13REM @link      http://pear.php.net/package/PHP_CodeSniffer
14
15if "%PHPBIN%" == "" set PHPBIN=@php_bin@
16if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
17GOTO RUN
18:USE_PEAR_PATH
19set PHPBIN=%PHP_PEAR_PHP_BIN%
20:RUN
21"%PHPBIN%" "@bin_dir@\phpcs" %*