Code Duplication    Length = 11-12 lines in 2 locations

modules/donation.php 1 location

@@ 217-227 (lines=11) @@
214
	/**
215
	* {@inheritdoc}
216
	*/
217
	public function uninstall($module_id, $db)
218
	{
219
		$del_config = array(
220
			'board3_pay_acc_' . $module_id,
221
			'board3_pay_custom_' . $module_id,
222
			'board3_pay_default_' . $module_id,
223
		);
224
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
225
			WHERE ' . $db->sql_in_set('config_name', $del_config);
226
		return $db->sql_query($sql);
227
	}
228
}
229

modules/recent.php 1 location

@@ 243-254 (lines=12) @@
240
	/**
241
	* {@inheritdoc}
242
	*/
243
	public function uninstall($module_id, $db)
244
	{
245
		$del_config = array(
246
			'board3_max_topics_' . $module_id,
247
			'board3_recent_title_limit_' . $module_id,
248
			'board3_recent_forum_' . $module_id,
249
			'board3_recent_exclude_forums_' . $module_id,
250
		);
251
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
252
			WHERE ' . $db->sql_in_set('config_name', $del_config);
253
		return $db->sql_query($sql);
254
	}
255
}
256