ObjectCalisthenics\Sniffs\NamingConventions\ConstantLengthSniff::isValid PHP 메소드

isValid() 보호된 메소드

protected isValid ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean
$phpcsFile PHP_CodeSniffer_File
$stackPtr integer
리턴 boolean
    protected function isValid(PHP_CodeSniffer_File $phpcsFile, int $stackPtr) : bool
    {
        return $phpcsFile->findPrevious(T_CONST, $stackPtr - 1, null, false, null, true) !== false;
    }
ConstantLengthSniff