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
24
            return;
25
        }
26
27
        if ($confirm) {
@@ 110-113 (lines=4) @@
107
        $lang = $this->lang;
108
        $data = $misc->getDatabaseAccessor();
109
110
        if (($type == 'table') && empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
111
            $this->doDefault($lang['strspecifytabletoreindex']);
112
113
            return;
114
        }
115
116
        if ($confirm) {
@@ 195-198 (lines=4) @@
192
        $lang = $this->lang;
193
        $data = $misc->getDatabaseAccessor();
194
195
        if (($type == 'table') && empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
196
            $this->doDefault($lang['strspecifytabletoanalyze']);
197
198
            return;
199
        }
200
201
        if ($confirm) {
@@ 276-279 (lines=4) @@
273
        $lang = $this->lang;
274
        $data = $misc->getDatabaseAccessor();
275
276
        if (($type == 'table') && empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
277
            $this->doDefault($lang['strspecifytabletovacuum']);
278
279
            return;
280
        }
281
282
        if ($confirm) {

src/controllers/TablesController.php 2 locations

@@ 1075-1078 (lines=4) @@
1072
        $lang = $this->lang;
1073
        $data = $misc->getDatabaseAccessor();
1074
1075
        if (empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
1076
            return $this->doDefault($lang['strspecifytabletoempty']);
1077
            exit();
1078
        }
1079
1080
        if ($confirm) {
1081
            if (isset($_REQUEST['ma'])) {
@@ 1144-1147 (lines=4) @@
1141
        $lang = $this->lang;
1142
        $data = $misc->getDatabaseAccessor();
1143
1144
        if (empty($_REQUEST['table']) && empty($_REQUEST['ma'])) {
1145
            return $this->doDefault($lang['strspecifytabletodrop']);
1146
            exit();
1147
        }
1148
1149
        if ($confirm) {
1150
            //If multi drop