Code Duplication    Length = 8-8 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

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