From d0717ee458465c981ce993654246df4d083be597 Mon Sep 17 00:00:00 2001 From: "Roman S. Borschel" Date: Tue, 24 Aug 2010 17:17:58 +0200 Subject: [PATCH] Fixed typo and simplified method as mentioned in an earlier comment. --- lib/Doctrine/ORM/Query/Parser.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/Doctrine/ORM/Query/Parser.php b/lib/Doctrine/ORM/Query/Parser.php index 8aa82e9dd..3d3fb5f5e 100644 --- a/lib/Doctrine/ORM/Query/Parser.php +++ b/lib/Doctrine/ORM/Query/Parser.php @@ -425,15 +425,11 @@ class Parser /** * 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) { - if (in_array($token['value'], array("+", "-", "/", "*"))) { - return true; - } - - return false; + return in_array($token['value'], array("+", "-", "/", "*")); } /**