Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 155-157 (lines=3) @@
152
				case 'number' :
153
					$instance[ $key ] = absint( $new_instance[ $key ] );
154
155
					if ( isset( $setting['min'] ) && '' !== $setting['min'] ) {
156
						$instance[ $key ] = max( $instance[ $key ], $setting['min'] );
157
					}
158
159
					if ( isset( $setting['max'] ) && '' !== $setting['max'] ) {
160
						$instance[ $key ] = min( $instance[ $key ], $setting['max'] );
@@ 159-161 (lines=3) @@
156
						$instance[ $key ] = max( $instance[ $key ], $setting['min'] );
157
					}
158
159
					if ( isset( $setting['max'] ) && '' !== $setting['max'] ) {
160
						$instance[ $key ] = min( $instance[ $key ], $setting['max'] );
161
					}
162
				break;
163
				case 'checkbox' :
164
					$instance[ $key ] = is_null( $new_instance[ $key ] ) ? 0 : 1;