Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 193-196 (lines=4) @@
190
			$instance['color-scheme']   = $this->filter_value( $new_instance['color-scheme'], $this->color_scheme_options );
191
			$instance['policy-url']     = $this->filter_value( $new_instance['policy-url'], $this->policy_url_options );
192
193
			if ( isset( $new_instance['hide-timeout'] ) ) {
194
				// Time can be a value between 3 and 1000 seconds.
195
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
196
			}
197
198
			if ( isset( $new_instance['consent-expiration'] ) ) {
199
				// Time can be a value between 1 and 365 days.
@@ 198-201 (lines=4) @@
195
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
196
			}
197
198
			if ( isset( $new_instance['consent-expiration'] ) ) {
199
				// Time can be a value between 1 and 365 days.
200
				$instance['consent-expiration'] = min( 365, max( 1, intval( $new_instance['consent-expiration'] ) ) );
201
			}
202
203
			if ( isset( $new_instance['customtext'] ) ) {
204
				$instance['customtext'] = mb_substr( wp_kses( $new_instance['customtext'], array() ), 0, 4096 );