Code Duplication    Length = 5-7 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 2068-2074 (lines=7) @@
2065
						), true )
2066
					) {
2067
						$hierarchy = true;
2068
					} elseif ( 'multi' === pods_v( self::$type . '_format_type', $options, 'single' ) && in_array( pods_v( self::$type . '_format_multi', $options, 'checkbox' ), array(
2069
							'multiselect',
2070
							'checkbox',
2071
						), true )
2072
					) {
2073
						$hierarchy = true;
2074
					}
2075
				}
2076
2077
				if ( $hierarchy && $options['table_info']['object_hierarchical'] && ! empty( $options['table_info']['field_parent'] ) ) {
@@ 2330-2334 (lines=5) @@
2327
			if ( in_array( pods_v( self::$type . '_format_single', $options, 'dropdown' ), array( 'autocomplete', 'list' ) ) ) {
2328
				$autocomplete = true;
2329
			}
2330
		} elseif ( 'multi' === pods_v( self::$type . '_format_type', $options, 'single' ) ) {
2331
			if ( in_array( pods_v( self::$type . '_format_multi', $options, 'checkbox' ), array( 'autocomplete', 'list' ) ) ) {
2332
				$autocomplete = true;
2333
			}
2334
		}
2335
2336
		return $autocomplete;
2337
	}