lib/Doctrine/ORM/Query/Parser.php
private function isMathOperator($token)
    {
        return in_array($token['type'], [Lexer::T_PLUS, Lexer::T_MINUS, Lexer::T_DIVIDE, Lexer::T_MULTIPLY], true);
    }
private function isMathOperator($token)
    {
        return in_array($token['type'], [Lexer::T_PLUS, Lexer::T_MINUS, Lexer::T_DIVIDE, Lexer::T_MULTIPLY], true);
    }
private function isMathOperator ( $ token ) { return in_array ( $ token [ 'type' ] , [ Lexer :: T_PLUS , Lexer :: T_MINUS , Lexer :: T_DIVIDE , Lexer :: T_MULTIPLY ] , true ) ; }
Checks if the given token indicates a mathematical operator.

@param mixed[] $token

@return bool TRUE if the token is a mathematical operator, FALSE otherwise.
Checks if the given token indicates a mathematical operator .