Code Duplication    Length = 7-7 lines in 2 locations

calendar/inc/class.calendar_sif.inc.php 1 location

@@ 934-940 (lines=7) @@
931
			$event['recur_exception'] = $exceptions; */
932
		}
933
934
		if ($this->uidExtension)
935
		{
936
			if (!preg_match('/\[UID:.+\]/m', $event['description']))
937
			{
938
				$event['description'] .= "\n[UID:" . $event['uid'] . "]";
939
			}
940
		}
941
942
		$sifEvent = self::xml_decl . "<appointment>" . self::SIF_decl;
943

calendar/inc/class.calendar_ical.inc.php 1 location

@@ 377-383 (lines=7) @@
374
					}
375
				}
376
			}
377
			if ($this->productManufacturer != 'file' && $this->uidExtension)
378
			{
379
				// Append UID to DESCRIPTION
380
				if (!preg_match('/\[UID:.+\]/m', $event['description'])) {
381
					$event['description'] .= "\n[UID:" . $event['uid'] . "]";
382
				}
383
			}
384
385
			$vevent = Horde_Icalendar::newComponent('VEVENT', $vcal);
386
			$parameters = $attributes = $values = array();