Code Duplication    Length = 9-9 lines in 2 locations

app/Stats.php 2 locations

@@ 6410-6418 (lines=9) @@
6407
	 *
6408
	 * @return string
6409
	 */
6410
	public function gedcomFavorites() {
6411
		if (Module::getModuleByName('gedcom_favorites')) {
6412
			$block = new FamilyTreeFavoritesModule(WT_MODULES_DIR . 'gedcom_favorites');
6413
6414
			return $block->getBlock(0, false);
6415
		} else {
6416
			return '';
6417
		}
6418
	}
6419
6420
	/**
6421
	 * Find the favorites for the user.
@@ 6425-6433 (lines=9) @@
6422
	 *
6423
	 * @return string
6424
	 */
6425
	public function userFavorites() {
6426
		if (Auth::check() && Module::getModuleByName('user_favorites')) {
6427
			$block = new UserFavoritesModule(WT_MODULES_DIR . 'gedcom_favorites');
6428
6429
			return $block->getBlock(0, false);
6430
		} else {
6431
			return '';
6432
		}
6433
	}
6434
6435
	/**
6436
	 * Find the number of favorites for the tree.