Code Duplication    Length = 8-8 lines in 2 locations

modules/otp.php 1 location

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

modules/u2f.php 1 location

@@ 363-370 (lines=8) @@
360
	 * @param int $key
361
	 * @return void
362
	 */
363
	public function delete($key)
364
	{
365
		$sql = 'DELETE FROM ' . $this->registration_table . '
366
					WHERE user_id = ' . (int) $this->user->data['user_id'] . '
367
					AND registration_id =' . (int) $key;
368
369
		$this->db->sql_query($sql);
370
	}
371
372
	/**
373
	 * If this module can add new keys (Or other things)