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

Class: Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff

Source Location: /PHP_CodeSniffer-1.5.2/CodeSniffer/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php

Class Overview

PHP_CodeSniffer_Standards_AbstractScopeSniff
   |
   --Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff

Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.


Author(s):

Version:

  • Release: 1.5.2

Copyright:

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

Variables

Methods


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 35]
Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.

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



[ Top ]


Class Variables

$magicFunctions = array('autoload')

[line 87]

A list of all PHP magic functions.
  • Access: protected

Type:   array


[ Top ]

$magicMethods = array(
                               'construct',
                               'destruct',
                               'call',
                               'callstatic',
                               'get',
                               'set',
                               'isset',
                               'unset',
                               'sleep',
                               'wakeup',
                               'tostring',
                               'set_state',
                               'clone',
                               'invoke',
                               'call',
                              )

[line 43]

A list of all PHP magic methods.
  • Access: protected

Type:   array


[ Top ]

$methodsDoubleUnderscore = array(
                                          'soapcall',
                                          'getlastrequest',
                                          'getlastresponse',
                                          'getlastrequestheaders',
                                          'getlastresponseheaders',
                                          'getfunctions',
                                          'gettypes',
                                          'dorequest',
                                          'setcookie',
                                          'setlocation',
                                          'setsoapheaders',
                                         )

[line 68]

A list of all PHP non-magic methods starting with a double underscore.

These come from PHP modules such as SOAPClient.

  • Access: protected

Type:   array


[ Top ]

$strict =  true

[line 94]

If TRUE, the string must not have two capital letters next to each other.
  • Access: public

Type:   bool


[ Top ]



Method Detail

__construct (Constructor)   [line 100]

Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff __construct( )

Constructs a Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.
  • Access: public

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

processTokenOutsideScope   [line 178]

void processTokenOutsideScope( PHP_CodeSniffer_File $phpcsFile, int $stackPtr)

Processes the tokens outside the scope.
  • Access: protected

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 117]

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