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>');
}
}