src/class-wp-register.php
protected static function unify_params( $type, $field, $default = '' ) {

		$data = array_column( self::$data[ $type ], $field );

		switch ( $field ) {
			case 'media':
			case 'footer':
			case 'version':
				foreach ( $data as $key => $value ) {
					if ( $data[0] !== $value ) {
						return $default;
					}
				}

				return ( isset( $data[0] ) && $data[0] ) ? $data[0] : $default;

			default:
				$params = [];

				foreach ( $data as $key => $value ) {
					$params = array_merge( $params, $value );
				}

				return array_unique( $params );
		}
	}
protected static function unify_params( $type, $field, $default = '' ) {

		$data = array_column( self::$data[ $type ], $field );

		switch ( $field ) {
			case 'media':
			case 'footer':
			case 'version':
				foreach ( $data as $key => $value ) {
					if ( $data[0] !== $value ) {
						return $default;
					}
				}

				return ( isset( $data[0] ) && $data[0] ) ? $data[0] : $default;

			default:
				$params = [];

				foreach ( $data as $key => $value ) {
					$params = array_merge( $params, $value );
				}

				return array_unique( $params );
		}
	}
Obtain all the parameters of a particular field and unify them.

@since 1.0.4

@param string $type    → script|style.
@param string $field   → field to unify.
@param string $default → default param.

@return array → unified parameters