Code Duplication    Length = 3-3 lines in 3 locations

_inc/lib/icalendar-reader.php 3 locations

@@ 224-226 (lines=3) @@
221
								} else {
222
									$noop = true;
223
								}
224
							} else {
225
								$recurring_event_date_start = date( 'Ymd', strtotime( '+ ' . ( $interval * $catchup ) . ' days', strtotime( $event['DTSTART'] ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) );
226
							}
227
						}
228
						break;
229
@@ 253-255 (lines=3) @@
250
								} else {
251
									$noop = true;
252
								}
253
							} else {
254
								$recurring_event_date_start = date( 'Ymd', strtotime( '+ ' . ( $interval * $catchup ) . ' weeks', strtotime( $event['DTSTART'] ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) );
255
							}
256
						}
257
258
						// Set to Sunday start
@@ 291-293 (lines=3) @@
288
									$catchup++;
289
								}
290
								$recurring_event_date_start = date( 'Ymd', strtotime( $event_date_desc . date( 'F Y', strtotime( '+ ' . ( $interval * ( $catchup - 1 ) ) . ' months', strtotime( $event['DTSTART'] ) ) ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) );
291
							} else {
292
								$recurring_event_date_start = date( 'Ymd', strtotime( $event_date_desc . date( 'F Y', $current ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) );
293
							}
294
295
							// Add one interval if necessary
296
							if ( strtotime( $recurring_event_date_start ) < $current ) {