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

Class: PSR1_Sniffs_Methods_CamelCapsMethodNameSniff

Source Location: /PHP_CodeSniffer-2.7.1/CodeSniffer/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php

Class Overview

PHP_CodeSniffer_Standards_AbstractScopeSniff
   |
   --Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff
      |
      --PSR1_Sniffs_Methods_CamelCapsMethodNameSniff

PSR1_Sniffs_Methods_CamelCapsMethodNameSniff.


Author(s):

Version:

  • Release: 2.7.1

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff

Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff::__construct()
Constructs a Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.
Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff::processTokenOutsideScope()
Processes the tokens outside the scope.
Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff::processTokenWithinScope()
Processes the tokens within the scope.

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 32]
PSR1_Sniffs_Methods_CamelCapsMethodNameSniff.

Ensures method names are defined using camel case.



[ Top ]


Method Detail

processTokenOutsideScope   [line 87]

void processTokenOutsideScope( PHP_CodeSniffer_File $phpcsFile, int $stackPtr)

Processes the tokens outside the scope.
  • Access: protected

Overrides Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff::processTokenOutsideScope() (Processes the tokens outside the scope.)

Parameters:

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

[ Top ]

processTokenWithinScope   [line 46]

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

Processes the tokens within the scope.
  • Access: protected

Overrides Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff::processTokenWithinScope() (Processes the tokens within the scope.)

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 14:50:42 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.