Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 562-568 (lines=7) @@
559
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
560
        $oid = spl_object_hash($document);
561
562
        if ( ! isset($this->documentInsertions[$oid])
563
            && ! isset($this->documentUpserts[$oid])
564
            && ! isset($this->documentDeletions[$oid])
565
            && isset($this->documentStates[$oid])
566
        ) {
567
            $this->computeChangeSet($class, $document);
568
        }
569
    }
570
571
    /**
@@ 898-904 (lines=7) @@
895
                }
896
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
897
                $oid = spl_object_hash($document);
898
                if ( ! isset($this->documentInsertions[$oid])
899
                    && ! isset($this->documentUpserts[$oid])
900
                    && ! isset($this->documentDeletions[$oid])
901
                    && isset($this->documentStates[$oid])
902
                ) {
903
                    $this->computeChangeSet($class, $document);
904
                }
905
            }
906
        }
907
    }