Code Duplication    Length = 2-2 lines in 2 locations

app/GedcomRecord.php 2 locations

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