Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/UnitOfWork.php 2 locations

@@ 510-512 (lines=3) @@
507
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
508
        $oid = spl_object_hash($entity);
509
510
        if ( ! isset($this->entityInsertions[$oid]) && ! isset($this->entityDeletions[$oid]) && isset($this->entityStates[$oid])) {
511
            $this->computeChangeSet($class, $entity);
512
        }
513
    }
514
515
    /**
@@ 813-815 (lines=3) @@
810
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
811
                $oid = spl_object_hash($entity);
812
813
                if ( ! isset($this->entityInsertions[$oid]) && ! isset($this->entityDeletions[$oid]) && isset($this->entityStates[$oid])) {
814
                    $this->computeChangeSet($class, $entity);
815
                }
816
            }
817
        }
818
    }