Code Duplication    Length = 3-3 lines in 2 locations

includes/abstracts/abstract-wc-settings-api.php 2 locations

@@ 108-110 (lines=3) @@
105
		$value     = isset( $_POST[ $field_key ] ) ? $_POST[ $field_key ] : null;
106
107
		// Look for a validate_FIELDID_field method for special handling
108
		if ( is_callable( array( $this, 'validate_' . $key . '_field' ) ) ) {
109
			return $this->{'validate_' . $key . '_field'}( $key, $value );
110
		}
111
112
		// Look for a validate_FIELDTYPE_field method
113
		if ( is_callable( array( $this, 'validate_' . $type . '_field' ) ) ) {
@@ 113-115 (lines=3) @@
110
		}
111
112
		// Look for a validate_FIELDTYPE_field method
113
		if ( is_callable( array( $this, 'validate_' . $type . '_field' ) ) ) {
114
			return $this->{'validate_' . $type . '_field'}( $key, $value );
115
		}
116
117
		// Fallback to text
118
		return $this->validate_text_field( $key, $value );