File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/php
1
2
<?php
2
3
/**
3
4
* PHP_CodeSniffer tokenises PHP code and detects violations of a
11
12
* @author Marc McIntyre <[email protected] >
12
13
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
13
14
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
14
- * @version CVS: $Id: phpcs,v 1.40 2008/03/10 02:39:04 squiz Exp $
15
+ * @version CVS: $Id: phpcs 301176 2010-07-12 04:36:44Z squiz $
15
16
* @link http://pear.php.net/package/PHP_CodeSniffer
16
17
*/
17
18
18
19
error_reporting (E_ALL | E_STRICT );
19
- ini_set ('display_errors ' , '1 ' );
20
+
21
+ // Optionally use PHP_Timer to print time/memory stats for the run.
22
+ // Note that the reports are the ones who actually print the data
23
+ // as they decide if it is ok to print this data to screen.
24
+ @include_once 'PHP/Timer.php ' ;
25
+ if (class_exists ('PHP_Timer ' , false ) === true ) {
26
+ PHP_Timer::start ();
27
+ }
20
28
21
29
if (is_file (dirname (__FILE__ ).'/../CodeSniffer/CLI.php ' ) === true ) {
22
30
include_once dirname (__FILE__ ).'/../CodeSniffer/CLI.php ' ;
32
40
exit (0 );
33
41
} else {
34
42
exit (1 );
35
- }
43
+ }
You can’t perform that action at this time.
0 commit comments