Skip to content

Commit b015c38

Browse files
author
skiera
committed
Replaced with PHP_CodeSniffer 1.3.0 bin file
1 parent bec8a01 commit b015c38

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

php/tools/phpcs.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/php
12
<?php
23
/**
34
* PHP_CodeSniffer tokenises PHP code and detects violations of a
@@ -11,12 +12,19 @@
1112
* @author Marc McIntyre <[email protected]>
1213
* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
1314
* @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 $
1516
* @link http://pear.php.net/package/PHP_CodeSniffer
1617
*/
1718

1819
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+
}
2028

2129
if (is_file(dirname(__FILE__).'/../CodeSniffer/CLI.php') === true) {
2230
include_once dirname(__FILE__).'/../CodeSniffer/CLI.php';
@@ -32,4 +40,4 @@
3240
exit(0);
3341
} else {
3442
exit(1);
35-
}
43+
}

0 commit comments

Comments
 (0)