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

@@ 2144-2156 (lines=13) @@
2141
		}
2142
	}
2143
2144
	if (questions_experts_enabled()) {
2145
		$experts_href = 'questions/experts';
2146
		if ($page_owner instanceof ElggGroup) {
2147
			$experts_href .= "/{$page_owner->getGUID()}";
2148
		}
2149
2150
		$items[] = ElggMenuItem::factory([
2151
			'name' => 'experts',
2152
			'text' => elgg_echo('questions:menu:filter:experts'),
2153
			'href' => $experts_href,
2154
			'priority' => 800,
2155
		]);
2156
	}
2157
2158
	return $items;
2159
}