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
    /**
@@ 919-925 (lines=7) @@
916
                }
917
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
918
                $oid = spl_object_hash($document);
919
                if ( ! isset($this->documentInsertions[$oid])
920
                    && ! isset($this->documentUpserts[$oid])
921
                    && ! isset($this->documentDeletions[$oid])
922
                    && isset($this->documentStates[$oid])
923
                ) {
924
                    $this->computeChangeSet($class, $document);
925
                }
926
            }
927
        }
928
    }