Code Duplication    Length = 11-11 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 806-816 (lines=11) @@
803
		if ( 'single' === $format_type ) {
804
			$format_single = pods_v( $args->type . '_format_single', $options, 'dropdown', true );
805
806
			if ( 'dropdown' === $format_single ) {
807
				$options['view_name'] = 'select';
808
			} elseif ( 'radio' === $format_single ) {
809
				$options['view_name'] = 'radio';
810
			} elseif ( 'autocomplete' === $format_single ) {
811
				$options['view_name'] = 'select2';
812
			} elseif ( 'list' === $format_single ) {
813
				$options['view_name'] = 'list';
814
			} else {
815
				$options['view_name'] = $format_single;
816
			}
817
		} elseif ( 'multi' === $format_type ) {
818
			$format_multi = pods_v( $args->type . '_format_multi', $options, 'checkbox', true );
819
@@ 824-834 (lines=11) @@
821
				$args->value = explode( ',', $args->value );
822
			}
823
824
			if ( 'checkbox' === $format_multi ) {
825
				$options['view_name'] = 'checkbox';
826
			} elseif ( 'multiselect' === $format_multi ) {
827
				$options['view_name'] = 'select';
828
			} elseif ( 'autocomplete' === $format_multi ) {
829
				$options['view_name'] = 'select2';
830
			} elseif ( 'list' === $format_multi ) {
831
				$options['view_name'] = 'list';
832
			} else {
833
				$options['view_name'] = $format_multi;
834
			}
835
836
			$limit = 0;
837