Code Duplication    Length = 17-17 lines in 2 locations

mod/questions/lib/hooks.php 1 location

@@ 145-161 (lines=17) @@
142
		}
143
	}
144
	
145
	if (questions_is_expert()) {
146
		$items[] = ElggMenuItem::factory([
147
			'name' => 'todo',
148
			'text' => elgg_echo('questions:menu:filter:todo'),
149
			'href' => 'questions/todo',
150
			'priority' => 700,
151
		]);
152
153
		if ($page_owner instanceof ElggGroup) {
154
			$items[] = ElggMenuItem::factory([
155
				'name' => 'todo_group',
156
				'text' => elgg_echo('questions:menu:filter:todo_group'),
157
				'href' => "questions/todo/{$page_owner->getGUID()}",
158
				'priority' => 710,
159
			]);
160
		}
161
	}
162
163
	if (questions_experts_enabled()) {
164
		$experts_href = 'questions/experts';

mod/wet4/start.php 1 location

@@ 2048-2064 (lines=17) @@
2045
		}
2046
	}
2047
2048
	if (questions_is_expert()) {
2049
		$items[] = ElggMenuItem::factory([
2050
			'name' => 'todo',
2051
			'text' => elgg_echo('questions:menu:filter:todo'),
2052
			'href' => 'questions/todo',
2053
			'priority' => 700,
2054
		]);
2055
2056
		if ($page_owner instanceof ElggGroup) {
2057
			$items[] = ElggMenuItem::factory([
2058
				'name' => 'todo_group',
2059
				'text' => elgg_echo('questions:menu:filter:todo_group'),
2060
				'href' => "questions/todo/{$page_owner->getGUID()}",
2061
				'priority' => 710,
2062
			]);
2063
		}
2064
	}
2065
2066
	if (questions_experts_enabled()) {
2067
		$experts_href = 'questions/experts';