\Joomla_Sniffs_Classes_MethodScopeSniff
Verifies that class members have scope modifiers.
Example:
class Foo
{
<b class="good">public function foo()</b>
{
}
<b class="bad">function 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_MethodScopeSniff
extends PHP_CodeSniffer_Standards_AbstractScopeSniff
{
- // methods
- public void __construct()
- protected void processTokenWithinScope()
Hierarchy
Methods
protected
- processTokenWithinScope() — Processes the function tokens within the class.