PHP Класс Generic_Sniffs_Functions_OpeningFunctionBraceKernighanRitchieSniff, PHP_CodeSniffer

Checks that the opening brace of a function is on the same line as the function declaration.
Автор: Greg Sherwood ([email protected])
Автор: Marc McIntyre ([email protected])
Наследование: implements PHP_CodeSniffer_Sniff
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$checkClosures boolean Should this sniff check closure braces?
$checkFunctions boolean Should this sniff check function braces?

Открытые методы

Метод Описание
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes this test, when one of its tokens is encountered.
register ( ) : void Registers the tokens that this sniff 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() публичный Метод

Registers the tokens that this sniff wants to listen for.
public register ( ) : void
Результат void

Описание свойств

$checkClosures публичное свойство

Should this sniff check closure braces?
public bool $checkClosures
Результат boolean

$checkFunctions публичное свойство

Should this sniff check function braces?
public bool $checkFunctions
Результат boolean