Code Duplication    Length = 11-11 lines in 2 locations

classes/fields/file.php 1 location

@@ 540-550 (lines=11) @@
537
	 *
538
	 * @since 2.3
539
	 */
540
	public function data_image_sizes ( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
541
		$data = array();
542
543
		$image_sizes = get_intermediate_image_sizes();
544
545
		foreach ( $image_sizes as $image_size ) {
546
			$data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
547
		}
548
549
		return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
550
	}
551
552
	/**
553
	 * Create a WP Gallery from the passed values (need to be attachments)

classes/fields/pick.php 1 location

@@ 2019-2029 (lines=11) @@
2016
     *
2017
     * @since 2.3
2018
     */
2019
    public function data_image_sizes ( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
2020
        $data = array();
2021
2022
        $image_sizes = get_intermediate_image_sizes();
2023
2024
        foreach ( $image_sizes as $image_size ) {
2025
            $data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) );
2026
        }
2027
2028
        return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id );
2029
    }
2030
2031
    /**
2032
     * Data callback for Countries