Subversion Repositories Applications.framework

Rev

Rev 5 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
#!@php_bin@
2
<?php
3
/**
4
 * PHP_CodeSniffer tokenises PHP code and detects violations of a
5
 * defined set of coding standards.
6
 *
7
 * PHP version 5
8
 *
9
 * @category  PHP
10
 * @package   PHP_CodeSniffer
11
 * @author    Greg Sherwood <gsherwood@squiz.net>
12
 * @author    Marc McIntyre <mmcintyre@squiz.net>
13
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
14
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
34 aurelien 15
 * @version   CVS: $Id: phpcs 34 2009-04-09 07:34:39Z aurelien $
5 aurelien 16
 * @link      http://pear.php.net/package/PHP_CodeSniffer
17
 */
18
 
19
error_reporting(E_ALL | E_STRICT);
20
 
21
if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) {
22
    include_once dirname(__FILE__).'/../CodeSniffer/CLI.php';
23
} else {
24
    include_once 'PHP/CodeSniffer/CLI.php';
25
}
26
 
27
$phpcs = new PHP_CodeSniffer_CLI();
28
$phpcs->checkRequirements();
29
 
30
$numErrors = $phpcs->process();
31
if ($numErrors === 0) {
32
    exit(0);
33
} else {
34
    exit(1);
35
}
36
 
37
?>