Code Duplication    Length = 18-18 lines in 2 locations

modules/links.php 1 location

@@ 214-231 (lines=18) @@
211
	/**
212
	* {@inheritdoc}
213
	*/
214
	public function uninstall($module_id, $db)
215
	{
216
		$del_config = array(
217
			'board3_links_array_' . $module_id,
218
		);
219
		$sql = 'DELETE FROM ' . PORTAL_CONFIG_TABLE . '
220
			WHERE ' . $db->sql_in_set('config_name', $del_config);
221
222
		$db->sql_query($sql);
223
224
		$del_config = array(
225
			'board3_links_' . $module_id,
226
			'board3_links_url_new_window_' . $module_id
227
		);
228
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
229
			WHERE ' . $db->sql_in_set('config_name', $del_config);
230
		return $db->sql_query($sql);
231
	}
232
233
	/**
234
	* Manage the links

modules/main_menu.php 1 location

@@ 269-286 (lines=18) @@
266
	/**
267
	* {@inheritdoc}
268
	*/
269
	public function uninstall($module_id, $db)
270
	{
271
		$del_config = array(
272
			'board3_menu_array_' . $module_id,
273
		);
274
		$sql = 'DELETE FROM ' . PORTAL_CONFIG_TABLE . '
275
			WHERE ' . $db->sql_in_set('config_name', $del_config);
276
277
		$db->sql_query($sql);
278
279
		$del_config = array(
280
			'board3_menu_' . $module_id,
281
			'board3_menu_url_new_window_' . $module_id,
282
		);
283
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
284
			WHERE ' . $db->sql_in_set('config_name', $del_config);
285
		return $db->sql_query($sql);
286
	}
287
288
	/**
289
	* Manage the menu links