Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 584-590 (lines=7) @@
581
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
582
        $oid = spl_object_hash($document);
583
584
        if ( ! isset($this->documentInsertions[$oid])
585
            && ! isset($this->documentUpserts[$oid])
586
            && ! isset($this->documentDeletions[$oid])
587
            && isset($this->documentStates[$oid])
588
        ) {
589
            $this->computeChangeSet($class, $document);
590
        }
591
    }
592
593
    /**
@@ 899-905 (lines=7) @@
896
                }
897
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
898
                $oid = spl_object_hash($document);
899
                if ( ! isset($this->documentInsertions[$oid])
900
                    && ! isset($this->documentUpserts[$oid])
901
                    && ! isset($this->documentDeletions[$oid])
902
                    && isset($this->documentStates[$oid])
903
                ) {
904
                    $this->computeChangeSet($class, $document);
905
                }
906
            }
907
        }
908
    }