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

@@ 2222-2234 (lines=13) @@
2219
		}
2220
	}
2221
2222
	if (questions_experts_enabled()) {
2223
		$experts_href = 'questions/experts';
2224
		if ($page_owner instanceof ElggGroup) {
2225
			$experts_href .= "/{$page_owner->getGUID()}";
2226
		}
2227
2228
		$items[] = ElggMenuItem::factory([
2229
			'name' => 'experts',
2230
			'text' => elgg_echo('questions:menu:filter:experts'),
2231
			'href' => $experts_href,
2232
			'priority' => 800,
2233
		]);
2234
	}
2235
2236
	return $items;
2237
}