Code Duplication    Length = 4-4 lines in 4 locations

manager/includes/config_check.inc.php 4 locations

@@ 99-102 (lines=4) @@
96
    }
97
}
98
99
if ($modx->getDatabase()->getValue($modx->getDatabase()->select('published', $modx->getDatabase()->getFullTableName('site_content'), "id='{$modx->config['unauthorized_page']}'")) == 0) {
100
    $warningspresent = 1;
101
    $warnings[] = array($_lang['configcheck_unauthorizedpage_unpublished']);
102
}
103
104
if ($modx->getDatabase()->getValue($modx->getDatabase()->select('published', $modx->getDatabase()->getFullTableName('site_content'), "id='{$modx->config['error_page']}'")) == 0) {
105
    $warningspresent = 1;
@@ 104-107 (lines=4) @@
101
    $warnings[] = array($_lang['configcheck_unauthorizedpage_unpublished']);
102
}
103
104
if ($modx->getDatabase()->getValue($modx->getDatabase()->select('published', $modx->getDatabase()->getFullTableName('site_content'), "id='{$modx->config['error_page']}'")) == 0) {
105
    $warningspresent = 1;
106
    $warnings[] = array($_lang['configcheck_errorpage_unpublished']);
107
}
108
109
if ($modx->getDatabase()->getValue($modx->getDatabase()->select('privateweb', $modx->getDatabase()->getFullTableName('site_content'), "id='{$modx->config['unauthorized_page']}'")) == 1) {
110
    $warningspresent = 1;
@@ 109-112 (lines=4) @@
106
    $warnings[] = array($_lang['configcheck_errorpage_unpublished']);
107
}
108
109
if ($modx->getDatabase()->getValue($modx->getDatabase()->select('privateweb', $modx->getDatabase()->getFullTableName('site_content'), "id='{$modx->config['unauthorized_page']}'")) == 1) {
110
    $warningspresent = 1;
111
    $warnings[] = array($_lang['configcheck_unauthorizedpage_unavailable']);
112
}
113
114
if ($modx->getDatabase()->getValue($modx->getDatabase()->select('privateweb', $modx->getDatabase()->getFullTableName('site_content'), "id='{$modx->config['error_page']}'")) == 1) {
115
    $warningspresent = 1;
@@ 114-117 (lines=4) @@
111
    $warnings[] = array($_lang['configcheck_unauthorizedpage_unavailable']);
112
}
113
114
if ($modx->getDatabase()->getValue($modx->getDatabase()->select('privateweb', $modx->getDatabase()->getFullTableName('site_content'), "id='{$modx->config['error_page']}'")) == 1) {
115
    $warningspresent = 1;
116
    $warnings[] = array($_lang['configcheck_errorpage_unavailable']);
117
}
118
119
if (!function_exists('checkSiteCache')) {
120
    /**