Code Duplication    Length = 7-7 lines in 4 locations

authenticate/models/authenticate.class.php 1 location

@@ 45-51 (lines=7) @@
42
   * @param object   $db_connection   The database connection object
43
   * @param string   $session_key     The session key
44
   */
45
  public function __construct($db_connection=false, $session_key=false)
46
  {
47
      if ($db_connection && is_object($db_connection)) {
48
          $this->db = $db_connection;
49
      }
50
      $this->session_key = $session_key;
51
  }
52
53
  /**
54
   * Generate Hash

group/models/group.class.php 1 location

@@ 45-51 (lines=7) @@
42
   * @param object   $db_connection   The database connection object
43
   * @param string   $session_key     The session key
44
   */
45
  public function __construct($db_connection = false, $session_key = false)
46
  {
47
      if ($db_connection && is_object($db_connection)) {
48
          $this->db = $db_connection;
49
      }
50
      $this->session_key = $session_key;
51
  }
52
53
  /**
54
   * Browse Groups

user_account/models/register_account.class.php 1 location

@@ 45-51 (lines=7) @@
42
   * @param object   $db_connection   The database connection object
43
   * @param string   $session_key     The session key
44
   */
45
  public function __construct( $db_connection = false, $session_key = false )
46
  {
47
      if ($db_connection && is_object($db_connection)) {
48
          $this->db = $db_connection;
49
      }
50
      $this->session_key = $session_key;
51
  }
52
53
  /**
54
   * Account Email Exists

user_account/models/user_account.class.php 1 location

@@ 45-51 (lines=7) @@
42
   * @param object   $db_connection   The database connection object
43
   * @param string   $session_key     The session key
44
   */
45
  public function __construct($db_connection = false, $session_key = false)
46
  {
47
      if ($db_connection && is_object($db_connection)) {
48
          $this->db = $db_connection;
49
      }
50
      $this->session_key = $session_key;
51
  }
52
53
  /**
54
   * Browse User Accounts