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
    /**
@@ 906-912 (lines=7) @@
903
                }
904
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
905
                $oid = spl_object_hash($document);
906
                if ( ! isset($this->documentInsertions[$oid])
907
                    && ! isset($this->documentUpserts[$oid])
908
                    && ! isset($this->documentDeletions[$oid])
909
                    && isset($this->documentStates[$oid])
910
                ) {
911
                    $this->computeChangeSet($class, $document);
912
                }
913
            }
914
        }
915
    }