Code Duplication    Length = 7-9 lines in 2 locations

mod/group_operators/start.php 1 location

@@ 156-164 (lines=9) @@
153
			$return[] = ElggMenuItem::factory($options);
154
			
155
		}
156
	} else {
157
		$options = array(
158
			'name' => 'change_owner',
159
			'text' => elgg_echo('group_operators:owner'),
160
			'href' => false,
161
		);
162
		
163
		$return[] = ElggMenuItem::factory($options);
164
	}
165
166
	return $return;
167
}

mod/questions/lib/hooks.php 1 location

@@ 29-35 (lines=7) @@
26
			'href' => "questions/group/{$entity->getGUID()}/all",
27
			'text' => elgg_echo('questions:group'),
28
		]);
29
	} elseif ($entity instanceof ElggUser) {
30
		$items[] = ElggMenuItem::factory([
31
			'name' => 'questions',
32
			'href' => "questions/owner/{$entity->username}",
33
			'text' => elgg_echo('questions'),
34
		]);
35
	}
36
	
37
	return $items;
38
}