Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 1224-1228 (lines=5) @@
1221
                $this->recomputeSingleDocumentChangeSet($class, $document);
1222
            }
1223
1224
            if ($hasPreUpdateListeners) {
1225
                $this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs(
1226
                    $document, $this->dm, $this->documentChangeSets[$oid])
1227
                );
1228
            }
1229
            $this->cascadePreUpdate($class, $document);
1230
1231
            if ( ! empty($this->documentChangeSets[$oid]) || $this->hasScheduledCollections($document)) {
@@ 1289-1293 (lines=5) @@
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])
1292
                    );
1293
                }
1294
1295
                $this->cascadePreUpdate($entryClass, $entry);
1296
            }