| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
DokuWiki_Sniffs_Whitespace_ScopeIndentSniff based on Generic_Sniffs_Whitespace_ScopeIndentSniff. PHP version 5
| Author: | Andreas Gohr |
| 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 |
| Link: | http://pear.php.net/package/PHP_CodeSniffer |
| Version: | CVS: $Id: ScopeIndentSniff.php 270281 2008-12-02 02:38:34Z squiz $ |
| File Size: | 319 lines (12 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
DokuWiki_Sniffs_WhiteSpace_ScopeIndentSniff:: (3 methods):
register()
process()
calculateExpectedIndent()
Class: DokuWiki_Sniffs_WhiteSpace_ScopeIndentSniff - X-Ref
Generic_Sniffs_Whitespace_ScopeIndentSniff.| register() X-Ref |
| Returns an array of tokens this test wants to listen for. return: array |
| process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) X-Ref |
| Processes this test, when one of its tokens is encountered. param: PHP_CodeSniffer_File $phpcsFile All the tokens found in the document. param: int $stackPtr The position of the current token return: void |
| calculateExpectedIndent(array $tokens, $stackPtr) X-Ref |
| Calculates the expected indent of a token. param: array $tokens The stack of tokens for this file. param: int $stackPtr The position of the token to get indent for. return: int |