\Joomla_Sniffs_WhiteSpace_MemberVarSpacingSniff
Verifies that class members are spaced correctly.
Example:
<b class="bad">Bad:</b>
class Foo
{
<b class="bad">private $foo;</b>
<b class="bad">private $bar;</b>
}
<b class="good">Good:</b>
class Foo
{
<b class="good">private $foo;</b>
<b class="good"> </b>
<b class="good">private $bar;</b>
}
- 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_MemberVarSpacingSniff
extends PHP_CodeSniffer_Standards_AbstractVariableSniff
{
- // methods
- protected void processMemberVar()
- protected void processVariable()
- protected void processVariableInString()
Hierarchy
Methods
protected
- processMemberVar() — Processes the function tokens within the class.
- processVariable() — Processes normal variables.
- processVariableInString() — Processes variables in double quoted strings.