Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 220-223 (lines=4) @@
217
			$instance['policy-url']   = $this->filter_value( isset( $new_instance['policy-url'] ) ? $new_instance['policy-url'] : '', $this->policy_url_options );
218
			$instance['position']     = $this->filter_value( isset( $new_instance['position'] ) ? $new_instance['position'] : '', $this->position_options );
219
220
			if ( isset( $new_instance['hide-timeout'] ) ) {
221
				// Time can be a value between 3 and 1000 seconds.
222
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
223
			}
224
225
			if ( isset( $new_instance['consent-expiration'] ) ) {
226
				// Time can be a value between 1 and 365 days.
@@ 225-228 (lines=4) @@
222
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
223
			}
224
225
			if ( isset( $new_instance['consent-expiration'] ) ) {
226
				// Time can be a value between 1 and 365 days.
227
				$instance['consent-expiration'] = min( 365, max( 1, intval( $new_instance['consent-expiration'] ) ) );
228
			}
229
230
			if ( isset( $new_instance['customtext'] ) ) {
231
				$instance['customtext'] = mb_substr( wp_kses( $new_instance['customtext'], array() ), 0, 4096 );