Code Duplication    Length = 4-4 lines in 6 locations

src/controllers/AdminTrait.php 4 locations

@@ 21-24 (lines=4) @@
18
        $lang   = $this->lang;
19
        $data   = $misc->getDatabaseAccessor();
20
21
        if (($type == 'table') && empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
22
            $this->doDefault($lang['strspecifytabletocluster']);
23
            return;
24
        }
25
26
        if ($confirm) {
27
            if (isset($_REQUEST['ma'])) {
@@ 108-111 (lines=4) @@
105
        $lang         = $this->lang;
106
        $data         = $misc->getDatabaseAccessor();
107
108
        if (($type == 'table') && empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
109
            $this->doDefault($lang['strspecifytabletoreindex']);
110
            return;
111
        }
112
113
        if ($confirm) {
114
            if (isset($_REQUEST['ma'])) {
@@ 191-194 (lines=4) @@
188
        $lang   = $this->lang;
189
        $data   = $misc->getDatabaseAccessor();
190
191
        if (($type == 'table') && empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
192
            $this->doDefault($lang['strspecifytabletoanalyze']);
193
            return;
194
        }
195
196
        if ($confirm) {
197
            if (isset($_REQUEST['ma'])) {
@@ 270-273 (lines=4) @@
267
        $lang = $this->lang;
268
        $data = $misc->getDatabaseAccessor();
269
270
        if (($type == 'table') && empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
271
            $this->doDefault($lang['strspecifytabletovacuum']);
272
            return;
273
        }
274
275
        if ($confirm) {
276
            if (isset($_REQUEST['ma'])) {

src/controllers/TablesController.php 2 locations

@@ 1063-1066 (lines=4) @@
1060
        $lang = $this->lang;
1061
        $data = $misc->getDatabaseAccessor();
1062
1063
        if (empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
1064
            return $this->doDefault($lang['strspecifytabletoempty']);
1065
            exit();
1066
        }
1067
1068
        if ($confirm) {
1069
            if (isset($_REQUEST['ma'])) {
@@ 1131-1134 (lines=4) @@
1128
        $lang = $this->lang;
1129
        $data = $misc->getDatabaseAccessor();
1130
1131
        if (empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
1132
            return $this->doDefault($lang['strspecifytabletodrop']);
1133
            exit();
1134
        }
1135
1136
        if ($confirm) {
1137
            //If multi drop