Mercurial > hg > cmmr2012-drupal-site
view vendor/squizlabs/php_codesniffer/bin/phpcs @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
line wrap: on
line source
#!/usr/bin/env php <?php /** * PHP_CodeSniffer detects violations of a defined coding standard. * * @author Greg Sherwood <gsherwood@squiz.net> * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence */ if (is_file(__DIR__.'/../autoload.php') === true) { include_once __DIR__.'/../autoload.php'; } else { include_once 'PHP/CodeSniffer/autoload.php'; } $runner = new PHP_CodeSniffer\Runner(); $exitCode = $runner->runPHPCS(); exit($exitCode);