Code Duplication    Length = 8-10 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 515-524 (lines=10) @@
512
	}
513
514
	public static function sanitize_value( $sanitize, &$value ) {
515
		if ( ! empty( $sanitize ) ) {
516
			if ( is_array( $value ) ) {
517
				$temp_values = $value;
518
				foreach ( $temp_values as $k => $v ) {
519
					self::sanitize_value( $sanitize, $value[ $k ] );
520
				}
521
			} else {
522
				$value = call_user_func( $sanitize, $value );
523
			}
524
		}
525
	}
526
527
	public static function sanitize_request( $sanitize_method, &$values ) {
@@ 551-558 (lines=8) @@
548
	 * @since 4.0.04
549
	 */
550
	public static function decode_specialchars( &$value ) {
551
		if ( is_array( $value ) ) {
552
			$temp_values = $value;
553
			foreach ( $temp_values as $k => $v ) {
554
				self::decode_specialchars( $value[ $k ] );
555
			}
556
		} else {
557
			$value = wp_specialchars_decode( $value, ENT_COMPAT );
558
		}
559
	}
560
561
	/**