Code Duplication    Length = 5-5 lines in 2 locations

main/inc/lib/icalcreator/iCalcreator.class.php 2 locations

@@ 574-578 (lines=5) @@
571
    function setConfig( $config, $value ) {
572
        $res = FALSE;
573
        switch( strtoupper( $config )) {
574
            case 'ALLOWEMPTY':
575
                $this->allowEmpty = $value;
576
                $subcfg  = array( 'ALLOWEMPTY' => $value );
577
                $res = TRUE;
578
                break;
579
            case 'DELIMITER':
580
                $this->delimiter = $value;
581
                return TRUE;
@@ 5671-5675 (lines=5) @@
5668
    function setConfig( $config, $value ) {
5669
        $res = FALSE;
5670
        switch( strtoupper( $config )) {
5671
            case 'ALLOWEMPTY':
5672
                $this->allowEmpty = $value;
5673
                $subcfg = array( 'ALLOWEMPTY' => $value );
5674
                $res    = TRUE;
5675
                break;
5676
            case 'FORMAT':
5677
                $value  = trim( $value );
5678
                $this->format = $value;