PHP Class SlevomatCodingStandard\Sniffs\ControlStructures\YodaComparisonSniff
($variable, Foo::$class, Foo::bar(), foo())
> (Foo::BAR, BAR)
> (true, false, null, 1, 1.0, arrays, 'foo')
Exibir arquivo
Open project: slevomat/coding-standard
Public Methods
Method |
Description |
|
process ( PHP_CodeSniffer_File $phpcsFile, integer $comparisonTokenPointer ) |
|
|
register ( ) : integer[] |
|
|
Private Methods
Method Details
public process ( PHP_CodeSniffer_File $phpcsFile, integer $comparisonTokenPointer ) |
$phpcsFile |
PHP_CodeSniffer_File |
|
$comparisonTokenPointer |
integer |
|
public register ( ) : integer[] |
return |
integer[] |
|