Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 577-583 (lines=7) @@
574
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
575
        $oid = spl_object_hash($document);
576
577
        if ( ! isset($this->documentInsertions[$oid])
578
            && ! isset($this->documentUpserts[$oid])
579
            && ! isset($this->documentDeletions[$oid])
580
            && isset($this->documentStates[$oid])
581
        ) {
582
            $this->computeChangeSet($class, $document);
583
        }
584
    }
585
586
    /**
@@ 916-922 (lines=7) @@
913
                }
914
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
915
                $oid = spl_object_hash($document);
916
                if ( ! isset($this->documentInsertions[$oid])
917
                    && ! isset($this->documentUpserts[$oid])
918
                    && ! isset($this->documentDeletions[$oid])
919
                    && isset($this->documentStates[$oid])
920
                ) {
921
                    $this->computeChangeSet($class, $document);
922
                }
923
            }
924
        }
925
    }