PHP_CodeSniffer
[ class tree: PHP_CodeSniffer ] [ index: PHP_CodeSniffer ] [ all elements ]

Class: PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff

Source Location: /PHP_CodeSniffer-0.7.0/CodeSniffer/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php

Class Overview

PHP_CodeSniffer_Standards_AbstractScopeSniff
   |
   --PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff

PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.


Author(s):

Version:

  • Release: 0.7.0

Copyright:

  • 2006 Squiz Pty Ltd (ABN 77 084 670 600)

Methods


Child classes:

Squiz_Sniffs_NamingConventions_ValidFunctionNameSniff
Squiz_Sniffs_NamingConventions_ValidFunctionNameSniff.

Inherited Variables

Inherited Methods

Class: PHP_CodeSniffer_Standards_AbstractScopeSniff

PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct()
Constructs a new AbstractScopeTest.
PHP_CodeSniffer_Standards_AbstractScopeSniff::process()
Processes the tokens that this test is listening for.
PHP_CodeSniffer_Standards_AbstractScopeSniff::processTokenOutsideScope()
Processes a token that is found within the scope that this test is listening to.
PHP_CodeSniffer_Standards_AbstractScopeSniff::processTokenWithinScope()
Processes a token that is found within the scope that this test is listening to.
PHP_CodeSniffer_Standards_AbstractScopeSniff::register()
The method that is called to register the tokens this test wishes to listen to.

Class Details

[line 34]
PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.

Ensures method names are correct depending on whether they are public or private, and that functions are named correctly.



[ Top ]


Method Detail

__construct (Constructor)   [line 70]

PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff __construct( )

Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
  • Access: public

Overrides PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct() (Constructs a new AbstractScopeTest.)
[ Top ]

processTokenOutsideScope   [line 165]

void processTokenOutsideScope( PHP_CodeSniffer_File $phpcsFile, int $stackPtr)

Processes the tokens outside the scope.
  • Access: protected

Overridden in child classes as:

Squiz_Sniffs_NamingConventions_ValidFunctionNameSniff::processTokenOutsideScope()
Processes the tokens outside the scope.

Overrides PHP_CodeSniffer_Standards_AbstractScopeSniff::processTokenOutsideScope() (Processes a token that is found within the scope that this test is listening to.)

Parameters:

PHP_CodeSniffer_File   $phpcsFile   —  The file being processed.
int   $stackPtr   —  The position where this token was found.

[ Top ]

processTokenWithinScope   [line 87]

void processTokenWithinScope( PHP_CodeSniffer_File $phpcsFile, int $stackPtr, int $currScope)

Processes the tokens within the scope.
  • Access: protected

Overrides PHP_CodeSniffer_Standards_AbstractScopeSniff::processTokenWithinScope() (Processes a token that is found within the scope that this test is listening to.)

Parameters:

PHP_CodeSniffer_File   $phpcsFile   —  The file being processed.
int   $stackPtr   —  The position where this token was found.
int   $currScope   —  The position of the current scope.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:06:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.