Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 566-572 (lines=7) @@
563
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
564
        $oid = spl_object_hash($document);
565
566
        if ( ! isset($this->documentInsertions[$oid])
567
            && ! isset($this->documentUpserts[$oid])
568
            && ! isset($this->documentDeletions[$oid])
569
            && isset($this->documentStates[$oid])
570
        ) {
571
            $this->computeChangeSet($class, $document);
572
        }
573
    }
574
575
    /**
@@ 885-891 (lines=7) @@
882
                }
883
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
884
                $oid = spl_object_hash($document);
885
                if ( ! isset($this->documentInsertions[$oid])
886
                    && ! isset($this->documentUpserts[$oid])
887
                    && ! isset($this->documentDeletions[$oid])
888
                    && isset($this->documentStates[$oid])
889
                ) {
890
                    $this->computeChangeSet($class, $document);
891
                }
892
            }
893
        }
894
    }