Code Duplication    Length = 7-7 lines in 2 locations

classes/Pods.php 2 locations

@@ 1991-1997 (lines=7) @@
1988
				}
1989
			}
1990
		} // Text fields
1991
		elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::text_field_types(), true ) ) {
1992
			$current_value = $pod->raw( $field );
1993
1994
			if ( 0 < strlen( $current_value ) ) {
1995
				return stripos( $current_value, $value );
1996
			}
1997
		} // All other fields
1998
		else {
1999
			return $this->is( $field, $value, $id );
2000
		}
@@ 2983-2989 (lines=7) @@
2980
				$value = strtotime( $value );
2981
			}
2982
		} // Text fields
2983
		elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::text_field_types(), true ) ) {
2984
			$current_value = $pod->raw( $field );
2985
2986
			if ( 0 < strlen( $current_value ) ) {
2987
				$value = $current_value . $value;
2988
			}
2989
		}
2990
2991
		// @todo handle object fields and taxonomies
2992