Lines Matching refs:phpcsFile

82      * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
89 … protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument
91 $methodName = $phpcsFile->getDeclarationName($stackPtr);
97 $className = $phpcsFile->getDeclarationName($currScope);
105 $phpcsFile->addError($error, $stackPtr, 'MethodDoubleUnderscore', $errorData);
121 $methodProps = $phpcsFile->getMethodProperties($stackPtr);
135 $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $errorData);
136 … $phpcsFile->recordMetric($stackPtr, 'Private method prefixed with underscore', 'no');
139 … $phpcsFile->recordMetric($stackPtr, 'Private method prefixed with underscore', 'yes');
150 $phpcsFile->addError($error, $stackPtr, 'PublicUnderscore', $data);
171 $phpcsFile->addError($error, $stackPtr, 'ScopeNotCamelCaps', $data);
174 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
186 * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
192 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
194 $functionName = $phpcsFile->getDeclarationName($stackPtr);
212 $phpcsFile->addError($error, $stackPtr, 'FunctionDoubleUnderscore', $errorData);
237 $phpcsFile->addError($error, $stackPtr, 'FunctionUnderscore', $errorData);
243 $phpcsFile->addError($error, $stackPtr, 'FunctionNoCapital', $errorData);
251 $phpcsFile->addError($error, $stackPtr, 'FunctionInvalid', $errorData);
292 $phpcsFile->addError($error, $stackPtr, 'FunctionNameInvalid', $data);