Code Duplication    Length = 8-8 lines in 3 locations

modules/otp.php 1 location

@@ 268-275 (lines=8) @@
265
	 *
266
	 * @return void
267
	 */
268
	public function delete($key)
269
	{
270
		$sql = 'DELETE FROM ' . $this->otp_registration_table . '
271
			WHERE user_id = ' . (int) $this->user->data['user_id'] . '
272
			AND registration_id =' . (int) $key;
273
274
		$this->db->sql_query($sql);
275
	}
276
277
	/**
278
	 * Select all registration objects from the database

modules/backup_key.php 1 location

@@ 264-271 (lines=8) @@
261
	 *
262
	 * @return void
263
	 */
264
	public function delete($key)
265
	{
266
		$sql = 'DELETE FROM ' . $this->backup_registration_table . '
267
			WHERE user_id = ' . (int) $this->user->data['user_id'] . '
268
			AND registration_id =' . (int) $key;
269
270
		$this->db->sql_query($sql);
271
	}
272
273
	/**
274
	 * Select all registration objects from the database

modules/u2f.php 1 location

@@ 353-360 (lines=8) @@
350
	 * @param int $key
351
	 * @return void
352
	 */
353
	public function delete($key)
354
	{
355
		$sql = 'DELETE FROM ' . $this->registration_table . '
356
			WHERE user_id = ' . (int) $this->user->data['user_id'] . '
357
			AND registration_id =' . (int) $key;
358
359
		$this->db->sql_query($sql);
360
	}
361
362
	/**
363
	 * If this module can add new keys (Or other things)