Code Duplication    Length = 5-10 lines in 2 locations

classes/Pods.php 2 locations

@@ 2999-3003 (lines=5) @@
2996
			if ( empty( $value ) ) {
2997
				return $id;
2998
			}
2999
		} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::number_field_types(), true ) ) {
3000
			// Number fields.
3001
			$current_value = (float) $pod->raw( $field );
3002
3003
			$value = ( $current_value + (float) $value );
3004
		} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::date_field_types(), true ) ) {
3005
			// Date fields.
3006
			$current_value = $pod->raw( $field );
@@ 3131-3140 (lines=10) @@
3128
					$value = array();
3129
				}
3130
			}//end if
3131
		} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::number_field_types(), true ) ) {
3132
			// Number fields.
3133
			// Date fields don't support empty for removing.
3134
			if ( empty( $value ) ) {
3135
				return $id;
3136
			}
3137
3138
			$current_value = (float) $pod->raw( $field );
3139
3140
			$value = ( $current_value - (float) $value );
3141
		} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::date_field_types(), true ) ) {
3142
			// Date fields.
3143
			// Date fields don't support empty for removing.