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

@@ 2346-2356 (lines=11) @@
2343
	 *
2344
	 * @since 2.3
2345
	 */
2346
	public function data_image_sizes( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
2347
2348
		$data = array();
2349
2350
		$image_sizes = get_intermediate_image_sizes();
2351
2352
		foreach ( $image_sizes as $image_size ) {
2353
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
2354
		}
2355
2356
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
2357
2358
	}
2359