Code Duplication    Length = 13-13 lines in 4 locations

src/controllers/AdminTrait.php 4 locations

@@ 765-777 (lines=13) @@
762
            case 'confirm_vacuum':
763
                $this->doVacuum($type, true);
764
                break;
765
            case 'cluster':
766
                if (isset($_POST['cluster'])) {
767
                    $this->doCluster($type);
768
                }
769
770
                // if multi-action from table canceled: back to the schema default page
771
                elseif (($type == 'table') && is_array($_REQUEST['object'])) {
772
                    $this->doDefault();
773
                } else {
774
                    $this->doAdmin($type);
775
                }
776
777
                break;
778
            case 'reindex':
779
                if (isset($_POST['reindex'])) {
780
                    $this->doReindex($type);
@@ 778-790 (lines=13) @@
775
                }
776
777
                break;
778
            case 'reindex':
779
                if (isset($_POST['reindex'])) {
780
                    $this->doReindex($type);
781
                }
782
783
                // if multi-action from table canceled: back to the schema default page
784
                elseif (($type == 'table') && is_array($_REQUEST['object'])) {
785
                    $this->doDefault();
786
                } else {
787
                    $this->doAdmin($type);
788
                }
789
790
                break;
791
            case 'analyze':
792
                if (isset($_POST['analyze'])) {
793
                    $this->doAnalyze($type);
@@ 791-803 (lines=13) @@
788
                }
789
790
                break;
791
            case 'analyze':
792
                if (isset($_POST['analyze'])) {
793
                    $this->doAnalyze($type);
794
                }
795
796
                // if multi-action from table canceled: back to the schema default page
797
                elseif (($type == 'table') && is_array($_REQUEST['object'])) {
798
                    $this->doDefault();
799
                } else {
800
                    $this->doAdmin($type);
801
                }
802
803
                break;
804
            case 'vacuum':
805
                if (isset($_POST['vacuum'])) {
806
                    $this->doVacuum($type);
@@ 804-816 (lines=13) @@
801
                }
802
803
                break;
804
            case 'vacuum':
805
                if (isset($_POST['vacuum'])) {
806
                    $this->doVacuum($type);
807
                }
808
809
                // if multi-action from table canceled: back to the schema default page
810
                elseif (($type == 'table') && is_array($_REQUEST['object'])) {
811
                    $this->doDefault();
812
                } else {
813
                    $this->doAdmin($type);
814
                }
815
816
                break;
817
            case 'admin':
818
                $this->doAdmin($type);
819
                break;