Code Duplication    Length = 3-3 lines in 2 locations

core/db_classes/EE_CSV.class.php 1 location

@@ 364-366 (lines=3) @@
361
		if ( $data && is_array($data) && is_array(EEH_Array::get_one_item_from_array($data))){
362
			//make sure top level is numerically indexed,
363
364
			if( EEH_Array::is_associative_array($data)){
365
				throw new EE_Error(sprintf(__("top-level array must be numerically indexed. Does these look like numbers to you? %s","event_espresso"),implode(",",array_keys($data))));
366
			}
367
			$item_in_top_level_array = EEH_Array::get_one_item_from_array($data);
368
			//now, is the last item in the top-level array of $data an associative or numeric array?
369
			if(EEH_Array::is_associative_array($item_in_top_level_array)){

core/helpers/EEH_Export.helper.php 1 location

@@ 63-65 (lines=3) @@
60
		if ( $data && is_array($data) && is_array(EEH_Array::get_one_item_from_array($data))){
61
			//make sure top level is numerically indexed,
62
63
			if( EEH_Array::is_associative_array($data)){
64
				throw new EE_Error(sprintf(__("top-level array must be numerically indexed. Does these look like numbers to you? %s","event_espresso"),implode(",",array_keys($data))));
65
			}
66
			$item_in_top_level_array = EEH_Array::get_one_item_from_array($data);
67
			//now, is the last item in the top-level array of $data an associative or numeric array?
68
			if( $write_column_headers &&