Code Duplication    Length = 2-2 lines in 2 locations

app/GedcomRecord.php 2 locations

@@ 811-812 (lines=2) @@
808
			}
809
			if ($event->getDate()->isOK() || !$event->getPlace()->isEmpty()) {
810
				switch ($style) {
811
				case 1:
812
					return '<br><em>' . $event->getLabel() . ' ' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</em>';
813
				case 2:
814
					return '<dl><dt class="label">' . $event->getLabel() . '</dt><dd class="field">' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</dd></dl>';
815
				}
@@ 813-814 (lines=2) @@
810
				switch ($style) {
811
				case 1:
812
					return '<br><em>' . $event->getLabel() . ' ' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</em>';
813
				case 2:
814
					return '<dl><dt class="label">' . $event->getLabel() . '</dt><dd class="field">' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</dd></dl>';
815
				}
816
			}
817
		}