Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1218-1223 (lines=6) @@
1215
                // only ReferenceMany collection is scheduled for update
1216
                $this->documentChangeSets[$oid] = array();
1217
            }
1218
            if ($hasPreUpdateLifecycleCallbacks) {
1219
                $class->invokeLifecycleCallbacks(Events::preUpdate, $document, array(
1220
                    new Event\PreUpdateEventArgs($document, $this->dm, $this->documentChangeSets[$oid])
1221
                ));
1222
                $this->recomputeSingleDocumentChangeSet($class, $document);
1223
            }
1224
1225
            if ($hasPreUpdateListeners) {
1226
                $this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs(
@@ 1284-1289 (lines=6) @@
1281
                    continue;
1282
                }
1283
1284
                if ( ! empty($entryClass->lifecycleCallbacks[Events::preUpdate])) {
1285
                    $entryClass->invokeLifecycleCallbacks(Events::preUpdate, $entry, array(
1286
                        new Event\PreUpdateEventArgs($entry, $this->dm, $this->documentChangeSets[$entryOid])
1287
                    ));
1288
                    $this->recomputeSingleDocumentChangeSet($entryClass, $entry);
1289
                }
1290
                if ($hasPreUpdateListeners) {
1291
                    $this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs(
1292
                        $entry, $this->dm, $this->documentChangeSets[$entryOid])