Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/UnitOfWork.php 2 locations

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