Code Duplication    Length = 10-10 lines in 2 locations

lib/Doctrine/ORM/UnitOfWork.php 2 locations

@@ 1589-1598 (lines=10) @@
1586
     *
1587
     * @return object|bool The found entity or FALSE.
1588
     */
1589
    public function tryGetByIdHash($idHash, $rootClassName)
1590
    {
1591
        $stringIdHash = (string) $idHash;
1592
1593
        if (isset($this->identityMap[$rootClassName][$stringIdHash])) {
1594
            return $this->identityMap[$rootClassName][$stringIdHash];
1595
        }
1596
1597
        return false;
1598
    }
1599
1600
    /**
1601
     * Checks whether an entity is registered in the identity map of this UnitOfWork.
@@ 2974-2983 (lines=10) @@
2971
     * @return object|bool Returns the entity with the specified identifier if it exists in
2972
     *                     this UnitOfWork, FALSE otherwise.
2973
     */
2974
    public function tryGetById($id, $rootClassName)
2975
    {
2976
        $idHash = implode(' ', (array) $id);
2977
2978
        if (isset($this->identityMap[$rootClassName][$idHash])) {
2979
            return $this->identityMap[$rootClassName][$idHash];
2980
        }
2981
2982
        return false;
2983
    }
2984
2985
    /**
2986
     * Schedules an entity for dirty-checking at commit-time.