[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
php
/
pear
/
PHP
/
CodeSniffer
/
Standards
/
Squiz
/
Sniffs
/
CodeAnalysis
/
[
Home
]
File: EmptyStatementSniff.php
<?php /** * This sniff class detectes empty statement. * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood <gsherwood@squiz.net> * @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600) * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence * @version Release: 1.3.3 * @link http://pear.php.net/package/PHP_CodeSniffer */ if (class_exists('Generic_Sniffs_CodeAnalysis_EmptyStatementSniff', true) === false) { throw new PHP_CodeSniffer_Exception('Class Generic_Sniffs_CodeAnalysis_EmptyStatementSniff not found'); } /** * This sniff class detectes empty statement. * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood <gsherwood@squiz.net> * @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600) * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence * @version Release: 1.3.3 * @link http://pear.php.net/package/PHP_CodeSniffer */ class Squiz_Sniffs_CodeAnalysis_EmptyStatementSniff extends Generic_Sniffs_CodeAnalysis_EmptyStatementSniff { /** * List of block tokens that this sniff covers. * * The key of this hash identifies the required token while the boolean * value says mark an error or mark a warning. * * @var array */ protected $checkedTokens = array( T_DO => true, T_ELSE => true, T_ELSEIF => true, T_FOR => true, T_FOREACH => true, T_IF => true, T_SWITCH => true, T_WHILE => true, ); }//end class ?>