Code Duplication    Length = 4-4 lines in 2 locations

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

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

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

@@ 1279-1282 (lines=4) @@
1276
                    continue;
1277
                }
1278
1279
                if ( ! empty($entryClass->lifecycleCallbacks[Events::preUpdate])) {
1280
                    $entryClass->invokeLifecycleCallbacks(Events::preUpdate, $entry);
1281
                    $this->recomputeSingleDocumentChangeSet($entryClass, $entry);
1282
                }
1283
                if ($hasPreUpdateListeners) {
1284
                    $this->evm->dispatchEvent(Events::preUpdate, new Event\PreUpdateEventArgs(
1285
                        $entry, $this->dm, $this->documentChangeSets[$entryOid])