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

@@ 2542-2552 (lines=11) @@
2539
	 *
2540
	 * @since 2.3
2541
	 */
2542
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
2543
2544
		$data = array();
2545
2546
		$image_sizes = get_intermediate_image_sizes();
2547
2548
		foreach ( $image_sizes as $image_size ) {
2549
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
2550
		}
2551
2552
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
2553
2554
	}
2555