Code Duplication    Length = 7-7 lines in 2 locations

_inc/lib/icalendar-reader.php 2 locations

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