Code Duplication    Length = 9-10 lines in 3 locations

modules/backup_key.php 1 location

@@ 52-60 (lines=9) @@
49
	 * @param manager $password_manager
50
	 * @param string $backup_registration_table
51
	 */
52
	public function __construct(driver_interface $db, user $user, request_interface $request, template $template, manager $password_manager, $backup_registration_table)
53
	{
54
		$this->db = $db;
55
		$this->user = $user;
56
		$this->request = $request;
57
		$this->template = $template;
58
		$this->backup_registration_table = $backup_registration_table;
59
		$this->password_manager = $password_manager;
60
	}
61
62
	/**
63
	 * Get a language key for this specific module.

modules/otp.php 1 location

@@ 52-61 (lines=10) @@
49
	 * @param template $template
50
	 * @param string                            $otp_registration_table
51
	 */
52
	public function __construct(driver_interface $db, user $user, request_interface $request, template $template, $otp_registration_table)
53
	{
54
		$this->otp_helper = new OTPHelper();
55
		$this->otp = new OTPAuthenticate();
56
		$this->db = $db;
57
		$this->user = $user;
58
		$this->request = $request;
59
		$this->template = $template;
60
		$this->otp_registration_table = $otp_registration_table;
61
	}
62
63
	/**
64
	 * Get a language key for this specific module.

modules/u2f.php 1 location

@@ 56-65 (lines=10) @@
53
	 * @param string $registration_table
54
	 * @param string $root_path
55
	 */
56
	public function __construct(driver_interface $db, user $user, request_interface $request, template $template, $registration_table, $root_path)
57
	{
58
		$this->db       = $db;
59
		$this->user     = $user;
60
		$this->request  = $request;
61
		$this->template = $template;
62
		$this->root_path= $root_path;
63
64
		$this->registration_table	= $registration_table;
65
	}
66
67
	private function getU2f()
68
	{