public static function isClause($token)
    {
        if (($token->type === Token::TYPE_KEYWORD && isset(Parser::$STATEMENT_PARSERS[$token->keyword]))
            || ($token->type === Token::TYPE_NONE && strtoupper($token->token) === 'DELIMITER')
        ) {
            return 2;
        } elseif ($token->type === Token::TYPE_KEYWORD && isset(Parser::$KEYWORD_PARSERS[$token->keyword])
        ) {
            return 1;
        }

        return false;
    }
public static function isClause($token)
    {
        if (($token->type === Token::TYPE_KEYWORD && isset(Parser::$STATEMENT_PARSERS[$token->keyword]))
            || ($token->type === Token::TYPE_NONE && strtoupper($token->token) === 'DELIMITER')
        ) {
            return 2;
        } elseif ($token->type === Token::TYPE_KEYWORD && isset(Parser::$KEYWORD_PARSERS[$token->keyword])
        ) {
            return 1;
        }

        return false;
    }
public static function isClause ( $ token ) { if ( ( $ token -> type === Token :: TYPE_KEYWORD && isset ( Parser :: $ STATEMENT_PARSERS [ $ token -> keyword ] ) ) || ( $ token -> type === Token :: TYPE_NONE && strtoupper ( $ token -> token ) === 'DELIMITER' ) ) { return 2 ; } elseif ( $ token -> type === Token :: TYPE_KEYWORD && isset ( Parser :: $ KEYWORD_PARSERS [ $ token -> keyword ] ) ) { return 1 ; } return false ; }
Checks if a token is a statement or a clause inside a statement.

@param Token $token the token to be checked

@return int|bool
Checks if a token is a statement or a clause inside a statement .