Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/UnitOfWork.php 2 locations

@@ 526-528 (lines=3) @@
523
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
524
        $oid = spl_object_hash($entity);
525
526
        if ( ! isset($this->entityInsertions[$oid]) && ! isset($this->entityDeletions[$oid]) && isset($this->entityStates[$oid])) {
527
            $this->computeChangeSet($class, $entity);
528
        }
529
    }
530
531
    /**
@@ 829-831 (lines=3) @@
826
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
827
                $oid = spl_object_hash($entity);
828
829
                if ( ! isset($this->entityInsertions[$oid]) && ! isset($this->entityDeletions[$oid]) && isset($this->entityStates[$oid])) {
830
                    $this->computeChangeSet($class, $entity);
831
                }
832
            }
833
        }
834
    }