Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 106-108 (lines=3) @@
103
		$type = $this->get_field_type( $field );
104
105
		// Look for a validate_FIELDID_field method for special handling
106
		if ( method_exists( $this, 'validate_' . $key . '_field' ) ) {
107
			return $this->{'validate_' . $key . '_field'}( $key );
108
		}
109
110
		// Look for a validate_FIELDTYPE_field method
111
		if ( method_exists( $this, 'validate_' . $type . '_field' ) ) {
@@ 111-113 (lines=3) @@
108
		}
109
110
		// Look for a validate_FIELDTYPE_field method
111
		if ( method_exists( $this, 'validate_' . $type . '_field' ) ) {
112
			return $this->{'validate_' . $type . '_field'}( $key );
113
		}
114
115
		// Fallback to text
116
		return $this->validate_text_field( $key );