* @author Marc McIntyre * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence * @version CVS: $Id: ZendCodingStandard.php,v 1.2 2008/10/23 04:52:05 squiz Exp $ * @link http://pear.php.net/package/PHP_CodeSniffer */ if (class_exists('PHP_CodeSniffer_Standards_CodingStandard', true) === false) { throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_CodingStandard not found'); } /** * Zend Coding Standard. * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood * @author Marc McIntyre * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence * @version Release: 1.2.0a1 * @link http://pear.php.net/package/PHP_CodeSniffer */ class PHP_CodeSniffer_Standards_Zend_ZendCodingStandard extends PHP_CodeSniffer_Standards_CodingStandard { /** * Return a list of external sniffs to include with this standard. * * The Zend standard uses some PEAR sniffs. * * @return array */ public function getIncludedSniffs() { return array( 'Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php', 'Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php', 'Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php', 'PEAR/Sniffs/Classes/ClassDeclarationSniff.php', 'PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php', 'PEAR/Sniffs/Files/LineEndingsSniff.php', 'PEAR/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php', 'PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php', 'PEAR/Sniffs/Functions/ValidDefaultValueSniff.php', 'PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php', 'Squiz/Sniffs/Functions/GlobalFunctionSniff.php', ); }//end getIncludedSniffs() }//end class ?>