1
0
mirror of synced 2025-02-02 21:41:45 +03:00

use ternary

This commit is contained in:
ReenExe 2016-07-02 23:00:40 +03:00
parent a7c4ca82fd
commit 52b2d9022a

View File

@ -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;
}
/**