1
0
mirror of synced 2025-02-09 08:49:26 +03:00

use ternary

This commit is contained in:
ReenExe 2016-07-02 22:42:46 +03:00
parent db6c593463
commit c6675b0ce3

View File

@ -1566,11 +1566,9 @@ class UnitOfWork implements PropertyChangedListener
{
$stringIdHash = (string) $idHash;
if (isset($this->identityMap[$rootClassName][$stringIdHash])) {
return $this->identityMap[$rootClassName][$stringIdHash];
}
return false;
return isset($this->identityMap[$rootClassName][$stringIdHash])
? $this->identityMap[$rootClassName][$stringIdHash]
: false;
}
/**