Code Duplication    Length = 4-6 lines in 2 locations

classes/Pods.php 2 locations

@@ 2977-2980 (lines=4) @@
2974
		elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::date_field_types(), true ) ) {
2975
			$current_value = $pod->raw( $field );
2976
2977
			if ( 0 < strlen( $current_value ) ) {
2978
				$value = strtotime( $value, strtotime( $current_value ) );
2979
			} else {
2980
				$value = strtotime( $value );
2981
			}
2982
		} // Text fields
2983
		elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::text_field_types(), true ) ) {
@@ 3118-3123 (lines=6) @@
3115
3116
			$current_value = $pod->raw( $field );
3117
3118
			if ( 0 < strlen( $current_value ) ) {
3119
				$value = strtotime( $value, strtotime( $current_value ) );
3120
			} else {
3121
				$value = strtotime( $value );
3122
			}
3123
3124
			$value = date_i18n( 'Y-m-d h:i:s', $value );
3125
		}
3126