Code Duplication    Length = 9-10 lines in 2 locations

src/controllers/AdminTrait.php 2 locations

@@ 77-85 (lines=9) @@
74
                    }
75
                    // Everything went fine, back to the Default page....
76
                    $this->doDefault($msg);
77
                } else {
78
                    $status = $data->clusterIndex($_REQUEST['object']);
79
                    if ($status == 0) {
80
                        $this->doAdmin($type, $lang['strclusteredgood']);
81
                    } else {
82
                        $this->doAdmin($type, $lang['strclusteredbad']);
83
                    }
84
                }
85
            } else {
86
                // Cluster all tables in database
87
                $status = $data->clusterIndex();
88
                if ($status == 0) {
@@ 85-94 (lines=10) @@
82
                        $this->doAdmin($type, $lang['strclusteredbad']);
83
                    }
84
                }
85
            } else {
86
                // Cluster all tables in database
87
                $status = $data->clusterIndex();
88
                if ($status == 0) {
89
                    $this->doAdmin($type, $lang['strclusteredgood']);
90
                } else {
91
                    $this->doAdmin($type, $lang['strclusteredbad']);
92
                }
93
            }
94
        }
95
    }
96
97
    /**