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

@@ 2127-2139 (lines=13) @@
2124
		}
2125
	}
2126
2127
	if (questions_experts_enabled()) {
2128
		$experts_href = 'questions/experts';
2129
		if ($page_owner instanceof ElggGroup) {
2130
			$experts_href .= "/{$page_owner->getGUID()}";
2131
		}
2132
2133
		$items[] = ElggMenuItem::factory([
2134
			'name' => 'experts',
2135
			'text' => elgg_echo('questions:menu:filter:experts'),
2136
			'href' => $experts_href,
2137
			'priority' => 800,
2138
		]);
2139
	}
2140
2141
	return $items;
2142
}