Chris@0: @echo off Chris@0: REM PHP_CodeSniffer tokenizes PHP code and detects violations of a Chris@0: REM defined set of coding standards. Chris@0: REM Chris@0: REM PHP version 5 Chris@0: REM Chris@0: REM @category PHP Chris@0: REM @package PHP_CodeSniffer Chris@0: REM @author Greg Sherwood Chris@0: REM @author Marc McIntyre Chris@0: REM @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) Chris@0: REM @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence Chris@0: REM @link http://pear.php.net/package/PHP_CodeSniffer Chris@0: Chris@0: if "%PHPBIN%" == "" set PHPBIN=@php_bin@ Chris@0: if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH Chris@0: GOTO RUN Chris@0: :USE_PEAR_PATH Chris@0: set PHPBIN=%PHP_PEAR_PHP_BIN% Chris@0: :RUN Chris@0: "%PHPBIN%" "@bin_dir@\phpcs" %*