\Joomla_Sniffs_Classes_MemberVarScopeSniff
Verifies that class members have scope modifiers.
Example:
class Foo
{
<b class="good">private $foo</b>
<b class="bad">var $foo</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_Classes_MemberVarScopeSniff
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.