Class: IncludeOwnSystemSniff
Source Location: /PHP_CodeSniffer-3.0.0a1/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php
Ensures that a system does not include itself.
Author(s):
Copyright:
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line
15]
Ensures that a system does not include itself.
Method Detail
getIncludedClassFromToken [line 87]
string getIncludedClassFromToken(
PHP_CodeSniffer_File
$phpcsFile, array
$tokens, int
$stackPtr)
Determines the included class name from given token.
Parameters:
PHP_CodeSniffer_File
$phpcsFile
—
The file where this token was found.
array
$tokens
—
The array of file tokens.
int
$stackPtr
—
The position in the tokens array of the potentially included class.
process [line 40]
void process(
File
$phpcsFile, int
$stackPtr)
Processes this sniff, when one of its tokens is encountered.
Parameters:
PHP_CodeSniffer_File
$phpcsFile
—
The file being scanned.
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
register [line 24]
Returns an array of tokens this test wants to listen for.
Documentation generated on 2019年3月11日 14:53:29 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.