ObjectCalisthenics\Sniffs\NamingConventions\FunctionLengthSniff::isValid PHP Method

isValid() protected method

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