N98\Magento\Command\System\Check\Settings\BaseUrlCheckAbstract::checkSettings PHP Method

checkSettings() protected method

protected checkSettings ( Result $result, Mage_Core_Model_Stor\Mage_Core_Model_Store $store, string $baseUrl )
$result N98\Magento\Command\System\Check\Result
$store Mage_Core_Model_Stor\Mage_Core_Model_Store
$baseUrl string setting
    protected function checkSettings(Result $result, Mage_Core_Model_Store $store, $baseUrl)
    {
        $errorMessage = 'Wrong hostname configured. <info>Hostname must contain a dot</info>';
        $host = parse_url($baseUrl, PHP_URL_HOST);
        $isValid = (bool) strstr($host, '.');
        $result->setStatus($isValid);
        if ($isValid) {
            $result->setMessage('<info>' . ucfirst($this->class) . ' BaseURL: <comment>' . $baseUrl . '</comment> of Store: <comment>' . $store->getCode() . '</comment> - OK');
        } else {
            $result->setMessage('<error>Invalid ' . ucfirst($this->class) . ' BaseURL: <comment>' . $baseUrl . '</comment> of Store: <comment>' . $store->getCode() . '</comment> ' . $errorMessage . '</error>');
        }
    }