Code Duplication    Length = 27-27 lines in 2 locations

paylater.php 2 locations

@@ 933-959 (lines=27) @@
930
        $data_pmt_expanded = 'no';
931
        $data_pmt_style = 'blue';
932
        $class = 'PmtSimulator';
933
        switch (Configuration::get('PAYLATER_STYLE_WIDGET')) {
934
            case 0:
935
                $data_pmt_type = 2;
936
                $data_pmt_expanded = 'no';
937
                break;
938
            case 1:
939
                $data_pmt_type = 2;
940
                $data_pmt_expanded = 'yes';
941
                break;
942
            case 2:
943
                $data_pmt_type = 3;
944
                $class = 'PmtSimulator PmtSimulatorSelectable--brand';
945
                break;
946
            case 3:
947
                $data_pmt_type = 3;
948
                $data_pmt_style = 'not_applicable';
949
                $class = 'PmtSimulator PmtSimulatorSelectable--claim';
950
                break;
951
            case 4:
952
                $data_pmt_type = 3;
953
                $data_pmt_style = 'not_applicable';
954
                $class = 'PmtSimulator';
955
                break;
956
            case 5:
957
                $data_pmt_type = 4;
958
                break;
959
        }
960
        if (Configuration::get('PAYLATER_STYLE_WIDGET') != '') {
961
            $data_pmt_style = Configuration::get('PAYLATER_COLOR_WIDGET');
962
        }
@@ 1017-1043 (lines=27) @@
1014
        $data_pmt_expanded = 'no';
1015
        $data_pmt_style = 'blue';
1016
        $class = 'PmtSimulator';
1017
        switch (Configuration::get('PAYLATER_STYLE_WIDGET')) {
1018
            case 0:
1019
                $data_pmt_type = 2;
1020
                $data_pmt_expanded = 'no';
1021
                break;
1022
            case 1:
1023
                $data_pmt_type = 2;
1024
                $data_pmt_expanded = 'yes';
1025
                break;
1026
            case 2:
1027
                $data_pmt_type = 3;
1028
                $class = 'PmtSimulator PmtSimulatorSelectable--brand';
1029
                break;
1030
            case 3:
1031
                $data_pmt_type = 3;
1032
                $data_pmt_style = 'not_applicable';
1033
                $class = 'PmtSimulator PmtSimulatorSelectable--claim';
1034
                break;
1035
            case 4:
1036
                $data_pmt_type = 3;
1037
                $data_pmt_style = 'not_applicable';
1038
                $class = 'PmtSimulator';
1039
                break;
1040
            case 5:
1041
                $data_pmt_type = 4;
1042
                break;
1043
        }
1044
        if (Configuration::get('PAYLATER_STYLE_WIDGET') != '') {
1045
            $data_pmt_style = Configuration::get('PAYLATER_COLOR_WIDGET');
1046
        }