public function validateModule($module) {
        $missing_modules = $this->validator->getMissingModules([$module]);
        if ($missing_modules) {
            throw new \Exception(
                sprintf(
                    $this->trans(
                        'commands.module.download.messages.no-releases'
                    ),
                    $module
                )
            );
        }
        return $module;
    }
public function validateModule($module) {
        $missing_modules = $this->validator->getMissingModules([$module]);
        if ($missing_modules) {
            throw new \Exception(
                sprintf(
                    $this->trans(
                        'commands.module.download.messages.no-releases'
                    ),
                    $module
                )
            );
        }
        return $module;
    }
public function validateModule ( $ module ) { $ missing_modules = $ this -> validator -> getMissingModules ( [ $ module ] ) ; if ( $ missing_modules ) { throw new \ Exception ( sprintf ( $ this -> trans ( 'commands.module.download.messages.no-releases' ) , $ module ) ) ; } return $ module ; }
Validate module.

@param string $module
Module name.
@return string
Module name.

@throws \Exception
When module is not found.
Validate module .