HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/elementor-pro/modules/atomic-widgets/settings-resolver.php
<?php
namespace ElementorPro\Modules\AtomicWidgets;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Settings_Resolver {
	public static function resolve( array $settings ): array {
		$resolved = [];

		foreach ( $settings as $key => $value ) {
			$resolved[ $key ] = static::resolve_value( $value );
		}

		return $resolved;
	}

	private static function resolve_value( $value ) {
		if ( ! is_array( $value ) ) {
			return $value;
		}

		if ( ! empty( $value['$$type'] ) && array_key_exists( 'value', $value ) ) {
			return static::resolve_value( $value['value'] );
		}

		return array_map( [ static::class, 'resolve_value' ], $value );
	}
}