private function getModuleDependencies(DependsOnModule $module)
    {
        $depends = $module->_depends();

        if (!$depends) {
            return [];
        }

        if (!is_array($depends)) {
            $message = sprintf("Method _depends of module '%s' must return an array", get_class($module));
            throw new ModuleException($module, $message);
        }

        return $depends;
    }
private function getModuleDependencies(DependsOnModule $module)
    {
        $depends = $module->_depends();

        if (!$depends) {
            return [];
        }

        if (!is_array($depends)) {
            $message = sprintf("Method _depends of module '%s' must return an array", get_class($module));
            throw new ModuleException($module, $message);
        }

        return $depends;
    }
private function getModuleDependencies ( DependsOnModule $ module ) { $ depends = $ module -> _depends ( ) ; if ( ! $ depends ) { return [ ] ; } if ( ! is_array ( $ depends ) ) { $ message = sprintf ( "Method _depends of module '%s' must return an array" , get_class ( $ module ) ) ; throw new ModuleException ( $ module , $ message ) ; } return $ depends ; }
Get the dependencies of a module.

@param \Codeception\Lib\Interfaces\DependsOnModule $module
@return array
@throws \Codeception\Exception\ModuleException
Get the dependencies of a module .