Code Duplication    Length = 4-6 lines in 2 locations

calendar/inc/class.calendar_boupdate.inc.php 2 locations

@@ 2234-2237 (lines=4) @@
2231
								$event['recurrence'] != 0)
2232
					{
2233
						$exceptions = $this->so->get_recurrence_exceptions($egwEvent, $event['tzid']);
2234
						if (in_array($event['recurrence'], $exceptions))
2235
						{
2236
							$matchingEvents[] = $egwEvent['id'] . ':' . (int)$event['recurrence'];
2237
						}
2238
					}
2239
				} elseif ($filter != 'master' && ($filter == 'exact' ||
2240
							$event['recur_type'] == $egwEvent['recur_type'] &&
@@ 2458-2463 (lines=6) @@
2455
							!$egwEvent['recurrence'] && $event['recurrence'])
2456
					{
2457
						$exceptions = $this->so->get_recurrence_exceptions($egwEvent, $event['tzid']);
2458
						if (in_array($event['recurrence'], $exceptions))
2459
						{
2460
							// We found a pseudo exception
2461
							$matchingEvents = array($egwEvent['id'] . ':' . (int)$event['recurrence']);
2462
							break;
2463
						}
2464
					}
2465
					continue;
2466
				}