Code Duplication    Length = 13-13 lines in 2 locations

classes/fields/pick.php 1 location

@@ 2693-2705 (lines=13) @@
2690
	 *
2691
	 * @since 2.3
2692
	 */
2693
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
2694
2695
		$data = array();
2696
2697
		$image_sizes = get_intermediate_image_sizes();
2698
2699
		foreach ( $image_sizes as $image_size ) {
2700
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
2701
		}
2702
2703
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
2704
2705
	}
2706
2707
	/**
2708
	 * Data callback for Countries.

classes/fields/file.php 1 location

@@ 723-735 (lines=13) @@
720
	 *
721
	 * @since 2.3
722
	 */
723
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
724
725
		$data = array();
726
727
		$image_sizes = get_intermediate_image_sizes();
728
729
		foreach ( $image_sizes as $image_size ) {
730
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
731
		}
732
733
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
734
735
	}
736
737
	/**
738
	 * Create a WP Gallery from the passed values (need to be attachments)