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

@@ 2387-2397 (lines=11) @@
2384
	 *
2385
	 * @since 2.3
2386
	 */
2387
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
2388
2389
		$data = array();
2390
2391
		$image_sizes = get_intermediate_image_sizes();
2392
2393
		foreach ( $image_sizes as $image_size ) {
2394
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
2395
		}
2396
2397
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
2398
2399
	}
2400