Code Duplication    Length = 9-9 lines in 2 locations

app/Functions/Functions.php 2 locations

@@ 276-284 (lines=9) @@
273
	 *
274
	 * @return string
275
	 */
276
	public static function getCloseRelationshipName(Individual $person1, Individual $person2) {
277
		if ($person1 === $person2) {
278
			$label = '<i class="icon-selected" title="' . I18N::translate('self') . '"></i>';
279
		} else {
280
			$label = self::getRelationshipName(self::getRelationship($person1, $person2));
281
		}
282
283
		return $label;
284
	}
285
286
	/**
287
	 * For facts on the individual/family pages.
@@ 294-302 (lines=9) @@
291
	 *
292
	 * @return string
293
	 */
294
	public static function getAssociateRelationshipName(Individual $person1, Individual $person2) {
295
		if ($person1 === $person2) {
296
			$label = I18N::translate('self');
297
		} else {
298
			$label = self::getRelationshipName(self::getRelationship($person1, $person2));
299
		}
300
301
		return $label;
302
	}
303
304
	/**
305
	 * Get relationship between two individuals in the gedcom