Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 557-563 (lines=7) @@
554
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
555
        $oid = spl_object_hash($document);
556
557
        if ( ! isset($this->documentInsertions[$oid])
558
            && ! isset($this->documentUpserts[$oid])
559
            && ! isset($this->documentDeletions[$oid])
560
            && isset($this->documentStates[$oid])
561
        ) {
562
            $this->computeChangeSet($class, $document);
563
        }
564
    }
565
566
    /**
@@ 872-878 (lines=7) @@
869
                }
870
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
871
                $oid = spl_object_hash($document);
872
                if ( ! isset($this->documentInsertions[$oid])
873
                    && ! isset($this->documentUpserts[$oid])
874
                    && ! isset($this->documentDeletions[$oid])
875
                    && isset($this->documentStates[$oid])
876
                ) {
877
                    $this->computeChangeSet($class, $document);
878
                }
879
            }
880
        }
881
    }