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
    /**
@@ 876-882 (lines=7) @@
873
                }
874
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
875
                $oid = spl_object_hash($document);
876
                if ( ! isset($this->documentInsertions[$oid])
877
                    && ! isset($this->documentUpserts[$oid])
878
                    && ! isset($this->documentDeletions[$oid])
879
                    && isset($this->documentStates[$oid])
880
                ) {
881
                    $this->computeChangeSet($class, $document);
882
                }
883
            }
884
        }
885
    }