Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 5785-5792 (lines=8) @@
5782
                    $return = TRUE;
5783
                }
5784
                break;
5785
            case 'DTSTAMP':
5786
                if( in_array( $this->objName, array( 'valarm', 'vtimezone', 'standard', 'daylight' )))
5787
                    return FALSE;
5788
                if( !empty( $this->dtstamp )) {
5789
                    $this->dtstamp = '';
5790
                    $return = TRUE;
5791
                }
5792
                break;
5793
            case 'DTSTART':
5794
                if( !empty( $this->dtstart )) {
5795
                    $this->dtstart = '';
@@ 5940-5947 (lines=8) @@
5937
                    $return = TRUE;
5938
                }
5939
                break;
5940
            case 'UID':
5941
                if( in_array( $this->objName, array( 'valarm', 'vtimezone', 'standard', 'daylight' )))
5942
                    return FALSE;
5943
                if( !empty( $this->uid )) {
5944
                    $this->uid = '';
5945
                    $return = TRUE;
5946
                }
5947
                break;
5948
            case 'URL':
5949
                if( !empty( $this->url )) {
5950
                    $this->url = '';