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

@@ 2434-2444 (lines=11) @@
2431
	 *
2432
	 * @since 2.3
2433
	 */
2434
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
2435
2436
		$data = array();
2437
2438
		$image_sizes = get_intermediate_image_sizes();
2439
2440
		foreach ( $image_sizes as $image_size ) {
2441
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
2442
		}
2443
2444
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
2445
2446
	}
2447