Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 561-567 (lines=7) @@
558
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
559
        $oid = spl_object_hash($document);
560
561
        if ( ! isset($this->documentInsertions[$oid])
562
            && ! isset($this->documentUpserts[$oid])
563
            && ! isset($this->documentDeletions[$oid])
564
            && isset($this->documentStates[$oid])
565
        ) {
566
            $this->computeChangeSet($class, $document);
567
        }
568
    }
569
570
    /**
@@ 897-903 (lines=7) @@
894
                }
895
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
896
                $oid = spl_object_hash($document);
897
                if ( ! isset($this->documentInsertions[$oid])
898
                    && ! isset($this->documentUpserts[$oid])
899
                    && ! isset($this->documentDeletions[$oid])
900
                    && isset($this->documentStates[$oid])
901
                ) {
902
                    $this->computeChangeSet($class, $document);
903
                }
904
            }
905
        }
906
    }