Code Duplication    Length = 7-7 lines in 2 locations

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

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