Code Duplication    Length = 3-3 lines in 2 locations

application/libraries/MY_Form_validation.php 2 locations

@@ 57-59 (lines=3) @@
54
	 * @return bool
55
	 */
56
	public function is_unique_username(string $username) : bool {
57
		if(!($isValid = $this->is_unique($username, "{$this->user_tables['users']}.username"))) {
58
			$this->set_message('is_unique_username', 'The username already exists in our database.');
59
		}
60
		return $isValid;
61
	}
62
	/**
@@ 67-69 (lines=3) @@
64
	 * @return bool
65
	 */
66
	public function is_unique_email(string $email) : bool {
67
		if(!($isValid = $this->is_unique($email, "{$this->user_tables['users']}.email"))) {
68
			$this->set_message('is_unique_email', 'The email already exists in our database.');
69
		}
70
		return $isValid;
71
	}
72