1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Fixed typo and simplified method as mentioned in an earlier comment.

This commit is contained in:
Roman S. Borschel 2010-08-24 17:17:58 +02:00
parent aa5826b69a
commit d0717ee458

View File

@ -425,15 +425,11 @@ class Parser
/** /**
* Checks if the given token indicates a mathematical operator. * Checks if the given token indicates a mathematical operator.
* *
* @return boolean TRUE is the token is a mathematical operator, FALSE otherwise. * @return boolean TRUE if the token is a mathematical operator, FALSE otherwise.
*/ */
private function _isMathOperator($token) private function _isMathOperator($token)
{ {
if (in_array($token['value'], array("+", "-", "/", "*"))) { return in_array($token['value'], array("+", "-", "/", "*"));
return true;
}
return false;
} }
/** /**