Redaxscript\View\SystemStatus::_validateWarning PHP Method

_validateWarning() protected method

validate the warning
Since: 3.0.0
protected _validateWarning ( ) : array
return array
    protected function _validateWarning()
    {
        $apacheModuleArray = $this->_registry->get('apacheModuleArray');
        $testOsArray = ['linux', 'windows nt'];
        $testModuleArray = ['mod_deflate', 'mod_headers', 'mod_rewrite'];
        $messageArray = [];
        if (!in_array($this->_registry->get('phpOs'), $testOsArray)) {
            $messageArray[] = $this->_language->get('php_os_unsupported');
        }
        /* process module */
        foreach ($testModuleArray as $value) {
            if (!in_array($value, $apacheModuleArray)) {
                $messageArray[] = $this->_language->get('apache_module_disabled') . $this->_language->get('colon') . ' ' . $value;
            }
        }
        return $messageArray;
    }