Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 555-561 (lines=7) @@
552
        // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
553
        $oid = spl_object_hash($document);
554
555
        if ( ! isset($this->documentInsertions[$oid])
556
            && ! isset($this->documentUpserts[$oid])
557
            && ! isset($this->documentDeletions[$oid])
558
            && isset($this->documentStates[$oid])
559
        ) {
560
            $this->computeChangeSet($class, $document);
561
        }
562
    }
563
564
    /**
@@ 891-897 (lines=7) @@
888
                }
889
                // Only MANAGED documents that are NOT SCHEDULED FOR INSERTION, UPSERT OR DELETION are processed here.
890
                $oid = spl_object_hash($document);
891
                if ( ! isset($this->documentInsertions[$oid])
892
                    && ! isset($this->documentUpserts[$oid])
893
                    && ! isset($this->documentDeletions[$oid])
894
                    && isset($this->documentStates[$oid])
895
                ) {
896
                    $this->computeChangeSet($class, $document);
897
                }
898
            }
899
        }
900
    }