Code Duplication    Length = 7-7 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 1881-1887 (lines=7) @@
1878
					)
1879
				);
1880
1881
				if ( 'data' === $context ) {
1882
					self::$field_data = array(
1883
						'field'        => $name,
1884
						'id'           => $options['id'],
1885
						'autocomplete' => false,
1886
					);
1887
				}
1888
1889
				$simple = true;
1890
@@ 2144-2150 (lines=7) @@
2141
					$autocomplete = false;
2142
				}
2143
2144
				if ( 'data' === $context ) {
2145
					self::$field_data = array(
2146
						'field'        => $name,
2147
						'id'           => $options['id'],
2148
						'autocomplete' => $autocomplete,
2149
					);
2150
				}
2151
2152
				if ( $hierarchy && ! $autocomplete && ! empty( $results ) && $options['table_info']['object_hierarchical'] && ! empty( $options['table_info']['field_parent'] ) ) {
2153
					$select_args = array(