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

@@ 2109-2125 (lines=17) @@
2106
		}
2107
	}
2108
2109
	if (questions_is_expert()) {
2110
		$items[] = ElggMenuItem::factory([
2111
			'name' => 'todo',
2112
			'text' => elgg_echo('questions:menu:filter:todo'),
2113
			'href' => 'questions/todo',
2114
			'priority' => 700,
2115
		]);
2116
2117
		if ($page_owner instanceof ElggGroup) {
2118
			$items[] = ElggMenuItem::factory([
2119
				'name' => 'todo_group',
2120
				'text' => elgg_echo('questions:menu:filter:todo_group'),
2121
				'href' => "questions/todo/{$page_owner->getGUID()}",
2122
				'priority' => 710,
2123
			]);
2124
		}
2125
	}
2126
2127
	if (questions_experts_enabled()) {
2128
		$experts_href = 'questions/experts';