Code Duplication    Length = 5-5 lines in 2 locations

app/Controller/CompactController.php 1 location

@@ 65-69 (lines=5) @@
62
			$name    = $indi->getFullName();
63
			$addname = $indi->getAddName();
64
65
			if ($this->show_thumbs && $indi->getTree()->getPreference('SHOW_HIGHLIGHT_IMAGES')) {
66
				$html = $indi->displayImage();
67
			} else {
68
				$html = '';
69
			}
70
71
			$html .= '<a class="name1" href="' . $indi->getHtmlUrl() . '">';
72
			$html .= $name;

app/Theme/AbstractTheme.php 1 location

@@ 697-701 (lines=5) @@
694
	 */
695
	public function individualBox(Individual $individual) {
696
		$personBoxClass = array_search($individual->getSex(), array('person_box' => 'M', 'person_boxF' => 'F', 'person_boxNN' => 'U'));
697
		if ($individual->canShow() && $individual->getTree()->getPreference('SHOW_HIGHLIGHT_IMAGES')) {
698
			$thumbnail = $individual->displayImage();
699
		} else {
700
			$thumbnail = '';
701
		}
702
703
		$content = '<span class="namedef name1">' . $individual->getFullName() . '</span>';
704
		$icons    = '';