\Joomla_Sniffs_WhiteSpace_SuperfluousWhitespaceSniff
Checks for whitespace.
Checks that.
<ul>
<li>No whitespace proceeds the first content of the file.</li>
<li>No whitespace resides after content on any line.</li>
<li>There are not two or more empty lines in functions and classes.</li>
<li>There is a exactly one empty line after the last content of the file.</li>
</ul>
- Author: Greg Sherwood <gsherwood@squiz.net>
- Copyright: 2006 Squiz Pty Ltd (ABN 77 084 670 600)
- License: http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
Synopsis
class Joomla_Sniffs_WhiteSpace_SuperfluousWhitespaceSniff
implements
PHP_CodeSniffer_Sniff
{
- // members
- public $supportedTokenizers;
Hierarchy
Implements
Members
public
- $supportedTokenizers
—
array
A list of tokenizers this sniff supports.
Methods
public
- process() — Processes this sniff, when one of its tokens is encountered.
- register() — Returns an array of tokens this test wants to listen for.