Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/ODM/MongoDB/UnitOfWork.php 2 locations

@@ 564-570 (lines=7) @@
561
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
562
        $oid = spl_object_hash($document);
563
564
        if ( ! isset($this->documentInsertions[$oid])
565
            && ! isset($this->documentUpserts[$oid])
566
            && ! isset($this->documentDeletions[$oid])
567
            && isset($this->documentStates[$oid])
568
        ) {
569
            $this->computeChangeSet($class, $document);
570
        }
571
    }
572
573
    /**
@@ 883-889 (lines=7) @@
880
                }
881
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
882
                $oid = spl_object_hash($document);
883
                if ( ! isset($this->documentInsertions[$oid])
884
                    && ! isset($this->documentUpserts[$oid])
885
                    && ! isset($this->documentDeletions[$oid])
886
                    && isset($this->documentStates[$oid])
887
                ) {
888
                    $this->computeChangeSet($class, $document);
889
                }
890
            }
891
        }
892
    }