Code Duplication    Length = 6-6 lines in 2 locations

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

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