Code Duplication    Length = 13-13 lines in 2 locations

mod/questions/lib/hooks.php 1 location

@@ 163-175 (lines=13) @@
160
		}
161
	}
162
163
	if (questions_experts_enabled()) {
164
		$experts_href = 'questions/experts';
165
		if ($page_owner instanceof ElggGroup) {
166
			$experts_href .= "/{$page_owner->getGUID()}";
167
		}
168
169
		$items[] = ElggMenuItem::factory([
170
			'name' => 'experts',
171
			'text' => elgg_echo('questions:menu:filter:experts'),
172
			'href' => $experts_href,
173
			'priority' => 800,
174
		]);
175
	}
176
177
	return $items;
178
}

mod/wet4/start.php 1 location

@@ 2047-2059 (lines=13) @@
2044
		}
2045
	}
2046
2047
	if (questions_experts_enabled()) {
2048
		$experts_href = 'questions/experts';
2049
		if ($page_owner instanceof ElggGroup) {
2050
			$experts_href .= "/{$page_owner->getGUID()}";
2051
		}
2052
2053
		$items[] = ElggMenuItem::factory([
2054
			'name' => 'experts',
2055
			'text' => elgg_echo('questions:menu:filter:experts'),
2056
			'href' => $experts_href,
2057
			'priority' => 800,
2058
		]);
2059
	}
2060
2061
	return $items;
2062
}