Code Duplication    Length = 5-5 lines in 2 locations

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

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