Code Duplication    Length = 9-9 lines in 6 locations

modules/friends.php 1 location

@@ 159-167 (lines=9) @@
156
	/**
157
	* {@inheritdoc}
158
	*/
159
	public function uninstall($module_id, $db)
160
	{
161
		$del_config = array(
162
			'board3_max_online_friends_' . $module_id,
163
		);
164
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
165
			WHERE ' . $db->sql_in_set('config_name', $del_config);
166
		return $db->sql_query($sql);
167
	}
168
}
169

modules/latest_bots.php 1 location

@@ 134-142 (lines=9) @@
131
	/**
132
	* {@inheritdoc}
133
	*/
134
	public function uninstall($module_id, $db)
135
	{
136
		$del_config = array(
137
			'board3_last_visited_bots_number_' . $module_id,
138
		);
139
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
140
			WHERE ' . $db->sql_in_set('config_name', $del_config);
141
		return $db->sql_query($sql);
142
	}
143
}
144

modules/latest_members.php 1 location

@@ 122-130 (lines=9) @@
119
	/**
120
	* {@inheritdoc}
121
	*/
122
	public function uninstall($module_id, $db)
123
	{
124
		$del_config = array(
125
			'board3_max_last_member_' . $module_id,
126
		);
127
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
128
			WHERE ' . $db->sql_in_set('config_name', $del_config);
129
		return $db->sql_query($sql);
130
	}
131
}
132

modules/leaders.php 1 location

@@ 278-286 (lines=9) @@
275
	/**
276
	* {@inheritdoc}
277
	*/
278
	public function uninstall($module_id, $db)
279
	{
280
		$del_config = array(
281
			'board3_leaders_ext_' . $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

modules/topposters.php 1 location

@@ 129-137 (lines=9) @@
126
	/**
127
	* {@inheritdoc}
128
	*/
129
	public function uninstall($module_id, $db)
130
	{
131
		$del_config = array(
132
			'board3_topposters_' . $module_id,
133
		);
134
		$sql = 'DELETE FROM ' . CONFIG_TABLE . '
135
			WHERE ' . $db->sql_in_set('config_name', $del_config);
136
		return $db->sql_query($sql);
137
	}
138
}
139

modules/user_menu.php 1 location

@@ 223-231 (lines=9) @@
220
	/**
221
	* {@inheritdoc}
222
	*/
223
	public function uninstall($module_id, $db)
224
	{
225
		$del_config = array(
226
			'board3_user_menu_register_' . $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