Code Duplication    Length = 9-9 lines in 2 locations

modules/backup_key.php 1 location

@@ 293-301 (lines=9) @@
290
	 * @param integer $user_id
291
	 * @return array
292
	 */
293
	private function getRegistrations($user_id)
294
	{
295
		$sql = 'SELECT * FROM ' . $this->backup_registration_table . ' WHERE user_id = ' . (int) $user_id;
296
		$result = $this->db->sql_query($sql);
297
		$rows = $this->db->sql_fetchrowset($result);
298
299
		$this->db->sql_freeresult($result);
300
		return $rows;
301
	}
302
}
303

modules/otp.php 1 location

@@ 294-302 (lines=9) @@
291
	 * @param integer $user_id
292
	 * @return array
293
	 */
294
	private function getRegistrations($user_id)
295
	{
296
		$sql = 'SELECT * FROM ' . $this->otp_registration_table . ' WHERE user_id = ' . (int) $user_id;
297
		$result = $this->db->sql_query($sql);
298
		$rows = $this->db->sql_fetchrowset($result);
299
300
		$this->db->sql_freeresult($result);
301
		return $rows;
302
	}
303
}
304