Merge pull request #731 from Gustl22/issue724

👌 IMPROVE: Doctor CLI: Harmonize negative check result descriptions (closes #724)
This commit is contained in:
Eldad A. Fux 2020-11-12 16:16:15 +02:00 committed by GitHub
commit e5aedcb4c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ $cli
$domain = new Domain(App::getEnv('_APP_DOMAIN')); $domain = new Domain(App::getEnv('_APP_DOMAIN'));
if(!$domain->isKnown() || $domain->isTest()) { if(!$domain->isKnown() || $domain->isTest()) {
Console::log('🔴 Hostname has a public suffix ('.$domain->get().')'); Console::log('🔴 Hostname has no public suffix ('.$domain->get().')');
} }
else { else {
Console::log('🟢 Hostname has a public suffix ('.$domain->get().')'); Console::log('🟢 Hostname has a public suffix ('.$domain->get().')');
@ -34,28 +34,28 @@ $cli
$domain = new Domain(App::getEnv('_APP_DOMAIN_TARGET')); $domain = new Domain(App::getEnv('_APP_DOMAIN_TARGET'));
if(!$domain->isKnown() || $domain->isTest()) { if(!$domain->isKnown() || $domain->isTest()) {
Console::log('🔴 CNAME target has a public suffix ('.$domain->get().')'); Console::log('🔴 CNAME target has no public suffix ('.$domain->get().')');
} }
else { else {
Console::log('🟢 CNAME target has a public suffix ('.$domain->get().')'); Console::log('🟢 CNAME target has a public suffix ('.$domain->get().')');
} }
if(App::getEnv('_APP_OPENSSL_KEY_V1') === 'your-secret-key' || empty(App::getEnv('_APP_OPENSSL_KEY_V1'))) { if(App::getEnv('_APP_OPENSSL_KEY_V1') === 'your-secret-key' || empty(App::getEnv('_APP_OPENSSL_KEY_V1'))) {
Console::log('🔴 Using a unique secret key for encryption'); Console::log('🔴 Not using a unique secret key for encryption');
} }
else { else {
Console::log('🟢 Using a unique secret key for encryption'); Console::log('🟢 Using a unique secret key for encryption');
} }
if(App::getEnv('_APP_ENV', 'development') !== 'production') { if(App::getEnv('_APP_ENV', 'development') !== 'production') {
Console::log('🔴 App enviornment is set for production'); Console::log('🔴 App environment is set for development');
} }
else { else {
Console::log('🟢 App enviornment is set for production'); Console::log('🟢 App environment is set for production');
} }
if('enabled' !== App::getEnv('_APP_OPTIONS_ABUSE', 'disabled')) { if('enabled' !== App::getEnv('_APP_OPTIONS_ABUSE', 'disabled')) {
Console::log('🔴 Abuse protection is enabled'); Console::log('🔴 Abuse protection is disabled');
} }
else { else {
Console::log('🟢 Abuse protection is enabled'); Console::log('🟢 Abuse protection is enabled');