Code Duplication    Length = 7-7 lines in 2 locations

_inc/lib/icalendar-reader.php 2 locations

@@ 693-699 (lines=7) @@
690
691
		foreach ( (array) $value as $v ) {
692
			switch ($component) {
693
				case 'VTODO':
694
					if ( 'EXDATE' == $keyword ) {
695
						$this->cal[ $component ][ $this->todo_count - 1 ][ $keyword ][] = $v;
696
					} else {
697
						$this->cal[ $component ][ $this->todo_count - 1 ][ $keyword ] = $v;
698
					}
699
					break;
700
				case 'VEVENT':
701
					if ( 'EXDATE' == $keyword ) {
702
						$this->cal[ $component ][ $this->event_count - 1 ][ $keyword ][] = $v;
@@ 700-706 (lines=7) @@
697
						$this->cal[ $component ][ $this->todo_count - 1 ][ $keyword ] = $v;
698
					}
699
					break;
700
				case 'VEVENT':
701
					if ( 'EXDATE' == $keyword ) {
702
						$this->cal[ $component ][ $this->event_count - 1 ][ $keyword ][] = $v;
703
					} else {
704
						$this->cal[ $component ][ $this->event_count - 1 ][ $keyword ] = $v;
705
					}
706
					break;
707
				default:
708
					$this->cal[ $component ][ $keyword ] = $v;
709
					break;