\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>

Synopsis

class Joomla_Sniffs_WhiteSpace_SuperfluousWhitespaceSniff implements PHP_CodeSniffer_Sniff {
}

Hierarchy

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.