Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 2 locations

@@ 442-444 (lines=3) @@
439
            $args = [new PreLoadEventArgs($document, $this->dm, $data)];
440
            $metadata->invokeLifecycleCallbacks(Events::preLoad, $document, $args);
441
        }
442
        if ($this->evm->hasListeners(Events::preLoad)) {
443
            $this->evm->dispatchEvent(Events::preLoad, new PreLoadEventArgs($document, $this->dm, $data));
444
        }
445
446
        // alsoLoadMethods may transform the document before hydration
447
        if (! empty($metadata->alsoLoadMethods)) {
@@ 483-485 (lines=3) @@
480
        if (! empty($metadata->lifecycleCallbacks[Events::postLoad])) {
481
            $metadata->invokeLifecycleCallbacks(Events::postLoad, $document, [new LifecycleEventArgs($document, $this->dm)]);
482
        }
483
        if ($this->evm->hasListeners(Events::postLoad)) {
484
            $this->evm->dispatchEvent(Events::postLoad, new LifecycleEventArgs($document, $this->dm));
485
        }
486
487
        return $data;
488
    }