Code Duplication    Length = 8-8 lines in 2 locations

install/install.queries.php 2 locations

@@ 101-108 (lines=8) @@
98
                break;
99
            }
100
101
            if (isset($data['activity']) && $data['activity'] === "extension") {
102
                if (extension_loaded($data['task'])) {
103
                    echo '[{"error" : "", "index" : "'.$_POST['index'].'", "multiple" : "'.$_POST['multiple'].'"}]';
104
                } else {
105
                    echo '[{"error" : " Extension '.$data['task'].' is not loaded!", "index" : "'.$_POST['index'].'", "multiple" : "'.$_POST['multiple'].'"}]';
106
                }
107
                break;
108
            }
109
110
            if (isset($data['activity']) && $data['activity'] === "function") {
111
                if (function_exists($data['task'])) {
@@ 110-117 (lines=8) @@
107
                break;
108
            }
109
110
            if (isset($data['activity']) && $data['activity'] === "function") {
111
                if (function_exists($data['task'])) {
112
                    echo '[{"error" : "", "index" : "'.$_POST['index'].'", "multiple" : "'.$_POST['multiple'].'"}]';
113
                } else {
114
                    echo '[{"error" : " Function '.$data['task'].' is not available!", "index" : "'.$_POST['index'].'", "multiple" : "'.$_POST['multiple'].'"}]';
115
                }
116
                break;
117
            }
118
119
            if (isset($data['activity']) && $data['activity'] === "version") {
120
                if (version_compare(phpversion(), '5.5.0', '>=')) {