From 75f44008d67b1d7237a2a7a3d742a98e0665ca04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Potk=C3=A1ny?= Date: Tue, 16 Aug 2016 01:31:46 +0200 Subject: [PATCH] Remove unneeded ternary operator from Query::contains --- lib/Doctrine/ORM/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Query.php b/lib/Doctrine/ORM/Query.php index a7c6f852d..e3f23cc6b 100644 --- a/lib/Doctrine/ORM/Query.php +++ b/lib/Doctrine/ORM/Query.php @@ -561,7 +561,7 @@ final class Query extends AbstractQuery */ public function contains($dql) { - return stripos($this->getDQL(), $dql) === false ? false : true; + return stripos($this->getDQL(), $dql) !== false; } /**