Code Duplication    Length = 4-4 lines in 2 locations

modules/widgets/eu-cookie-law.php 2 locations

@@ 204-207 (lines=4) @@
201
			$instance['color-scheme']   = $this->filter_value( $new_instance['color-scheme'], $this->color_scheme_options );
202
			$instance['policy-url']     = $this->filter_value( $new_instance['policy-url'], $this->policy_url_options );
203
204
			if ( isset( $new_instance['hide-timeout'] ) ) {
205
				// Time can be a value between 3 and 1000 seconds.
206
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
207
			}
208
209
			if ( isset( $new_instance['consent-expiration'] ) ) {
210
				// Time can be a value between 1 and 365 days.
@@ 209-212 (lines=4) @@
206
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
207
			}
208
209
			if ( isset( $new_instance['consent-expiration'] ) ) {
210
				// Time can be a value between 1 and 365 days.
211
				$instance['consent-expiration'] = min( 365, max( 1, intval( $new_instance['consent-expiration'] ) ) );
212
			}
213
214
			if ( isset( $new_instance['customtext'] ) ) {
215
				$instance['customtext'] = mb_substr( wp_kses( $new_instance['customtext'], array() ), 0, 4096 );