From 52b2d9022a9d16b3d33d6760b8d058f07beaa234 Mon Sep 17 00:00:00 2001 From: ReenExe Date: Sat, 2 Jul 2016 23:00:40 +0300 Subject: [PATCH] use ternary --- lib/Doctrine/ORM/UnitOfWork.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 408d2c961..902ccd6d7 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2936,11 +2936,9 @@ class UnitOfWork implements PropertyChangedListener { $idHash = implode(' ', (array) $id); - if (isset($this->identityMap[$rootClassName][$idHash])) { - return $this->identityMap[$rootClassName][$idHash]; - } - - return false; + return isset($this->identityMap[$rootClassName][$idHash]) + ? $this->identityMap[$rootClassName][$idHash] + : false; } /**