Code Duplication    Length = 7-7 lines in 2 locations

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

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