Code Duplication    Length = 8-10 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 506-515 (lines=10) @@
503
	}
504
505
	public static function sanitize_value( $sanitize, &$value ) {
506
		if ( ! empty( $sanitize ) ) {
507
			if ( is_array( $value ) ) {
508
				$temp_values = $value;
509
				foreach ( $temp_values as $k => $v ) {
510
					self::sanitize_value( $sanitize, $value[ $k ] );
511
				}
512
			} else {
513
				$value = call_user_func( $sanitize, $value );
514
			}
515
		}
516
	}
517
518
	public static function sanitize_request( $sanitize_method, &$values ) {
@@ 542-549 (lines=8) @@
539
	 * @since 4.0.04
540
	 */
541
	private static function decode_specialchars( &$value ) {
542
		if ( is_array( $value ) ) {
543
			$temp_values = $value;
544
			foreach ( $temp_values as $k => $v ) {
545
				self::decode_specialchars( $value[ $k ] );
546
			}
547
		} else {
548
			$value = wp_specialchars_decode( $value, ENT_COMPAT );
549
		}
550
	}
551
552
	/**