Code Duplication    Length = 4-4 lines in 2 locations

ODM/MongoDB/Mapping/ClassMetadataFactory.php 2 locations

@@ 43-46 (lines=4) @@
40
    {
41
        if (!isset($this->innerLoadedMetadata[$className])) {
42
            $evm = $this->documentManager->getEventManager();
43
            if ($evm->hasListeners(Events::PRE_LOAD_CLASSMETADATA)) {
44
                $eventArgs = new PreLoadClassMetadataEventArgs($className, $this->documentManager);
45
                $evm->dispatchEvent(Events::PRE_LOAD_CLASSMETADATA, $eventArgs);
46
            }
47
48
            $classMetadata = parent::getMetadataFor($className);
49
@@ 50-53 (lines=4) @@
47
48
            $classMetadata = parent::getMetadataFor($className);
49
50
            if ($evm->hasListeners(Events::POST_LOAD_CLASS_METADATA)) {
51
                $eventArgs = new LoadClassMetadataEventArgs($classMetadata, $this->documentManager);
52
                $evm->dispatchEvent(Events::POST_LOAD_CLASS_METADATA, $eventArgs);
53
            }
54
55
            $this->innerLoadedMetadata[$className] = $classMetadata;
56
        }