Code Duplication    Length = 9-9 lines in 2 locations

app/Controller/FamilyController.php 1 location

@@ 116-124 (lines=9) @@
113
	 *
114
	 * @return string
115
	 */
116
	public function getSignificantSurname() {
117
		if ($this->record && $this->record->getHusband()) {
118
			list($surn) = explode(',', $this->record->getHusband()->getSortName());
119
120
			return $surn;
121
		} else {
122
			return '';
123
		}
124
	}
125
126
	/**
127
	 * Print the facts

app/Controller/IndividualController.php 1 location

@@ 350-358 (lines=9) @@
347
	 *
348
	 * @return string
349
	 */
350
	public function getSignificantSurname() {
351
		if ($this->record) {
352
			list($surn) = explode(',', $this->record->getSortName());
353
354
			return $surn;
355
		} else {
356
			return '';
357
		}
358
	}
359
360
	/**
361
	 * Get the contents of sidebar.