Code Duplication    Length = 11-11 lines in 2 locations

classes/fields/file.php 1 location

@@ 749-759 (lines=11) @@
746
	 *
747
	 * @since 2.3
748
	 */
749
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
750
751
		$data = array();
752
753
		$image_sizes = get_intermediate_image_sizes();
754
755
		foreach ( $image_sizes as $image_size ) {
756
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
757
		}
758
759
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
760
761
	}
762

classes/fields/pick.php 1 location

@@ 2624-2634 (lines=11) @@
2621
	 *
2622
	 * @since 2.3
2623
	 */
2624
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
2625
2626
		$data = array();
2627
2628
		$image_sizes = get_intermediate_image_sizes();
2629
2630
		foreach ( $image_sizes as $image_size ) {
2631
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
2632
		}
2633
2634
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
2635
2636
	}
2637