Code Duplication    Length = 7-7 lines in 2 locations

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

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