Code Duplication    Length = 8-8 lines in 3 locations

modules/backup_key.php 1 location

@@ 279-286 (lines=8) @@
276
	 *
277
	 * @return void
278
	 */
279
	public function delete($key)
280
	{
281
		$sql = 'DELETE FROM ' . $this->backup_registration_table . '
282
			WHERE user_id = ' . (int) $this->user->data['user_id'] . '
283
			AND registration_id =' . (int) $key;
284
285
		$this->db->sql_query($sql);
286
	}
287
288
	/**
289
	 * Select all registration objects from the database

modules/otp.php 1 location

@@ 280-287 (lines=8) @@
277
	 *
278
	 * @return void
279
	 */
280
	public function delete($key)
281
	{
282
		$sql = 'DELETE FROM ' . $this->otp_registration_table . '
283
			WHERE user_id = ' . (int) $this->user->data['user_id'] . '
284
			AND registration_id =' . (int) $key;
285
286
		$this->db->sql_query($sql);
287
	}
288
289
	/**
290
	 * Select all registration objects from the database

modules/u2f.php 1 location

@@ 373-380 (lines=8) @@
370
	 * @param int $key
371
	 * @return void
372
	 */
373
	public function delete($key)
374
	{
375
		$sql = 'DELETE FROM ' . $this->registration_table . '
376
			WHERE user_id = ' . (int) $this->user->data['user_id'] . '
377
			AND registration_id =' . (int) $key;
378
379
		$this->db->sql_query($sql);
380
	}
381
382
	/**
383
	 * If this module can add new keys (Or other things)