usr_share_php_PHP_CodeSniffer/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php
/**
     * Processes the tokens within the scope.
     *
     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
     * @param int                  $stackPtr  The position where this token was
     *                                        found.
     * @param int                  $currScope The position of the current scope.
     *
     * @return void
     */
Processes the tokens within the scope.
@param PHP_CodeSniffer_File $phpcsFile The file being processed.
@param int                  $stackPtr  The position where this token was
found.
@param int                  $currScope The position of the current scope.

@return void
Processes the tokens within the scope . @param PHP_CodeSniffer_File $phpcsFile The file being processed . @param int $stackPtr The position where this token was found . @param int $currScope The position of the current scope . @return void
protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
    {
        $methodName = $phpcsFile->getDeclarationName($stackPtr);
        if ($methodName === null) {
            return;
        }
        $testName = ltrim($methodName, '_');
        if (PHP_CodeSniffer::isCamelCaps($testName, false, true, false) === false) {
            $error     = 'Method name "%s" is not in camel caps format';
            $className = $phpcsFile->getDeclarationName($currScope);
            $errorData = array($className.'::'.$methodName);
            $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
        }
    }
protected function processTokenWithinScope ( PHP_CodeSniffer_File $ phpcsFile , $ stackPtr , $ currScope ) { $ methodName = $ phpcsFile -> getDeclarationName ( $ stackPtr ) ; if ( $ methodName === null ) { return ; } $ testName = ltrim ( $ methodName , '_' ) ; if ( PHP_CodeSniffer :: isCamelCaps ( $ testName , false , true , false ) === false ) { $ error = 'Method name "%s" is not in camel caps format' ; $ className = $ phpcsFile -> getDeclarationName ( $ currScope ) ; $ errorData = array ( $ className . '::' . $ methodName ) ; $ phpcsFile -> addError ( $ error , $ stackPtr , 'NotCamelCaps' , $ errorData ) ; } }
Processes the tokens within the scope.
Processes the tokens within the scope .
// Ignore closures.