Code Duplication    Length = 9-9 lines in 2 locations

core/libraries/rest_api/Model_Data_Translator.php 1 location

@@ 380-388 (lines=9) @@
377
	 * @param $condition_query_param_key
378
	 * @return string
379
	 */
380
	public static function remove_stars_and_anything_after_from_condition_query_param_key( $condition_query_param_key ) {
381
		$pos_of_star = strpos($condition_query_param_key, '*');
382
		if($pos_of_star === FALSE){
383
			return $condition_query_param_key;
384
		}else{
385
			$condition_query_param_sans_star = substr($condition_query_param_key, 0, $pos_of_star);
386
			return $condition_query_param_sans_star;
387
		}
388
	}
389
390
391

core/db_models/EEM_Base.model.php 1 location

@@ 3483-3491 (lines=9) @@
3480
	 * @param string $condition_query_param_key
3481
	 * @return string
3482
	 */
3483
	private function _remove_stars_and_anything_after_from_condition_query_param_key($condition_query_param_key){
3484
		$pos_of_star = strpos($condition_query_param_key, '*');
3485
		if($pos_of_star === FALSE){
3486
			return $condition_query_param_key;
3487
		}else{
3488
			$condition_query_param_sans_star = substr($condition_query_param_key, 0, $pos_of_star);
3489
			return $condition_query_param_sans_star;
3490
		}
3491
	}
3492
3493
3494