Code Duplication    Length = 7-7 lines in 2 locations

core/db_models/EEM_Question_Group.model.php 1 location

@@ 73-79 (lines=7) @@
70
	 * @access public
71
	 * @return int
72
	 */
73
	public function get_latest_question_group_order() {
74
		$columns_to_select = array(
75
			'max_order' => array("MAX(QSG_order)","%d")
76
			);
77
		$max = $this->_get_all_wpdb_results(array(), ARRAY_A, $columns_to_select );
78
		return $max[0]['max_order'];
79
	}
80
81
82
}

core/db_models/EEM_Question.model.php 1 location

@@ 332-338 (lines=7) @@
329
	 * @access public
330
	 * @return int
331
	 */
332
	public function get_latest_question_order() {
333
		$columns_to_select = array(
334
			'max_order' => array("MAX(QST_order)","%d")
335
		);
336
		$max = $this->_get_all_wpdb_results( array(), ARRAY_A, $columns_to_select );
337
		return $max[0]['max_order'];
338
	}
339
340
	/**
341
	 * Returns an array where keys are system question QST_system values,