PHP Класс Generic_Sniffs_Classes_OpeningBraceSameLineSniff, PHP_CodeSniffer
Checks that the opening brace of a class or interface is on the same line
as the class declaration.
Also checks that the brace is the last thing on that line and has precisely one space before it.
Показать файл
Открыть проект
Открытые методы
Метод |
Описание |
|
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void |
Processes this test, when one of its tokens is encountered. |
|
register ( ) : array |
Returns an array of tokens this test wants to listen for. |
|
Описание методов
process()
публичный Метод
Processes this test, when one of its tokens is encountered.
public process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void |
$phpcsFile |
PHP_CodeSniffer_File |
The file being scanned. |
$stackPtr |
integer |
The position of the current token in the
stack passed in $tokens. |
Результат |
void |
|
register()
публичный Метод
Returns an array of tokens this test wants to listen for.