source/Internal/Module/Setup/Validator/EventsModuleSettingValidator.php
public function validate(ModuleSetting $moduleSetting, string $moduleId, int $shopId)
    {
        if (!$this->canValidate($moduleSetting)) {
            throw new WrongModuleSettingException($moduleSetting, self::class);
        }

        $events = $moduleSetting->getValue();
        foreach ($this->validEvents as $validEventName) {
            if (is_array($events) && array_key_exists($validEventName, $events)) {
                $this->checkIfMethodIsCallable($events[$validEventName]);
            }
        }
    }
public function validate(ModuleSetting $moduleSetting, string $moduleId, int $shopId)
    {
        if (!$this->canValidate($moduleSetting)) {
            throw new WrongModuleSettingException($moduleSetting, self::class);
        }

        $events = $moduleSetting->getValue();
        foreach ($this->validEvents as $validEventName) {
            if (is_array($events) && array_key_exists($validEventName, $events)) {
                $this->checkIfMethodIsCallable($events[$validEventName]);
            }
        }
    }
public function validate ( ModuleSetting $ moduleSetting , string $ moduleId , int $ shopId ) { if ( ! $ this -> canValidate ( $ moduleSetting ) ) { throw new WrongModuleSettingException ( $ moduleSetting , self :: class ) ; } $ events = $ moduleSetting -> getValue ( ) ; foreach ( $ this -> validEvents as $ validEventName ) { if ( is_array ( $ events ) && array_key_exists ( $ validEventName , $ events ) ) { $ this -> checkIfMethodIsCallable ( $ events [ $ validEventName ] ) ; } } }
There is another service for syntax validation and we won't validate syntax in this method.

@param ModuleSetting $moduleSetting
@param string        $moduleId
@param int           $shopId

@throws WrongModuleSettingException
There is another service for syntax validation and we won t validate syntax in this method .