Code Duplication    Length = 3-3 lines in 2 locations

includes/abstracts/abstract-wc-widget.php 2 locations

@@ 158-160 (lines=3) @@
155
				case 'number' :
156
					$instance[ $key ] = absint( $new_instance[ $key ] );
157
158
					if ( isset( $setting['min'] ) && '' !== $setting['min'] ) {
159
						$instance[ $key ] = max( $instance[ $key ], $setting['min'] );
160
					}
161
162
					if ( isset( $setting['max'] ) && '' !== $setting['max'] ) {
163
						$instance[ $key ] = min( $instance[ $key ], $setting['max'] );
@@ 162-164 (lines=3) @@
159
						$instance[ $key ] = max( $instance[ $key ], $setting['min'] );
160
					}
161
162
					if ( isset( $setting['max'] ) && '' !== $setting['max'] ) {
163
						$instance[ $key ] = min( $instance[ $key ], $setting['max'] );
164
					}
165
				break;
166
				case 'textarea' :
167
					$instance[ $key ] = wp_kses( trim( wp_unslash( $new_instance[ $key ] ) ), wp_kses_allowed_html( 'post' ) );