Code Duplication    Length = 17-17 lines in 2 locations

application/third_party/Ion-Auth/models/Ion_auth_model.php 2 locations

@@ 702-718 (lines=17) @@
699
	 * @return bool
700
	 * @author Mathew
701
	 **/
702
	public function username_check($username = '')
703
	{
704
		$this->trigger_events('username_check');
705
706
		if (empty($username))
707
		{
708
			return FALSE;
709
		}
710
711
		$this->trigger_events('extra_where');
712
713
		return $this->db->where('username', $username)
714
										->group_by("id")
715
										->order_by("id", "ASC")
716
										->limit(1)
717
		                ->count_all_results($this->tables['users']) > 0;
718
	}
719
720
	/**
721
	 * Checks email
@@ 726-742 (lines=17) @@
723
	 * @return bool
724
	 * @author Mathew
725
	 **/
726
	public function email_check($email = '')
727
	{
728
		$this->trigger_events('email_check');
729
730
		if (empty($email))
731
		{
732
			return FALSE;
733
		}
734
735
		$this->trigger_events('extra_where');
736
737
		return $this->db->where('email', $email)
738
										->group_by("id")
739
										->order_by("id", "ASC")
740
										->limit(1)
741
		                ->count_all_results($this->tables['users']) > 0;
742
	}
743
744
	/**
745
	 * Identity check