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

@@ 2087-2099 (lines=13) @@
2084
		}
2085
	}
2086
2087
	if (questions_experts_enabled()) {
2088
		$experts_href = 'questions/experts';
2089
		if ($page_owner instanceof ElggGroup) {
2090
			$experts_href .= "/{$page_owner->getGUID()}";
2091
		}
2092
2093
		$items[] = ElggMenuItem::factory([
2094
			'name' => 'experts',
2095
			'text' => elgg_echo('questions:menu:filter:experts'),
2096
			'href' => $experts_href,
2097
			'priority' => 800,
2098
		]);
2099
	}
2100
2101
	return $items;
2102
}