Code Duplication    Length = 4-4 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 location

@@ 432-435 (lines=4) @@
429
    {
430
        $metadata = $this->dm->getClassMetadata(get_class($document));
431
        // Invoke preLoad lifecycle events and listeners
432
        if ( ! empty($metadata->lifecycleCallbacks[Events::preLoad])) {
433
            $args = array(&$data);
434
            $metadata->invokeLifecycleCallbacks(Events::preLoad, $document, $args);
435
        }
436
        if ($this->evm->hasListeners(Events::preLoad)) {
437
            $this->evm->dispatchEvent(Events::preLoad, new PreLoadEventArgs($document, $this->dm, $data));
438
        }

lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 location

@@ 1291-1294 (lines=4) @@
1288
                    continue;
1289
                }
1290
1291
                if ( ! empty($entryClass->lifecycleCallbacks[Events::preUpdate])) {
1292
                    $entryClass->invokeLifecycleCallbacks(Events::preUpdate, $entry);
1293
                    $this->recomputeSingleDocumentChangeSet($entryClass, $entry);
1294
                }
1295
                if ($hasPreUpdateListeners) {
1296
                    $this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs(
1297
                        $entry, $this->dm, $this->documentChangeSets[$entryOid])