PHP Classes

File: vendor/squizlabs/php_codesniffer/bin/phpcs

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/bin/phpcs   Download  
File: vendor/squizlabs/php_codesniffer/bin/phpcs
Role: Example script
Content type: text/plain
Description: Example script
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 448 bytes
 

Contents

Class file image Download
#!/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/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
 */

require_once __DIR__.'/../autoload.php';

$runner = new PHP_CodeSniffer\Runner();
$exitCode = $runner->runPHPCS();
exit(
$exitCode);