Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 230-233 (lines=4) @@
227
			$instance['policy-url']   = $this->filter_value( isset( $new_instance['policy-url'] ) ? $new_instance['policy-url'] : '', $this->policy_url_options );
228
			$instance['position']     = $this->filter_value( isset( $new_instance['position'] ) ? $new_instance['position'] : '', $this->position_options );
229
230
			if ( isset( $new_instance['hide-timeout'] ) ) {
231
				// Time can be a value between 3 and 1000 seconds.
232
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
233
			}
234
235
			if ( isset( $new_instance['consent-expiration'] ) ) {
236
				// Time can be a value between 1 and 365 days.
@@ 235-238 (lines=4) @@
232
				$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) );
233
			}
234
235
			if ( isset( $new_instance['consent-expiration'] ) ) {
236
				// Time can be a value between 1 and 365 days.
237
				$instance['consent-expiration'] = min( 365, max( 1, intval( $new_instance['consent-expiration'] ) ) );
238
			}
239
240
			if ( isset( $new_instance['customtext'] ) ) {
241
				$instance['customtext'] = mb_substr( wp_kses( $new_instance['customtext'], array() ), 0, 4096 );