From 6e6acdfde29658ce6ddcf15c40a76266e4ba8b21 Mon Sep 17 00:00:00 2001 From: Miguel Peixe Date: Thu, 7 Dec 2023 12:08:39 -0300 Subject: [PATCH] fix: rename method --- includes/providers/gam/api/class-targeting-keys.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/providers/gam/api/class-targeting-keys.php b/includes/providers/gam/api/class-targeting-keys.php index 5c60838e..061583fc 100644 --- a/includes/providers/gam/api/class-targeting-keys.php +++ b/includes/providers/gam/api/class-targeting-keys.php @@ -36,13 +36,13 @@ final class Targeting_Keys extends Api_Object { ]; /** - * Parse site URL for targeting. + * Parse URL to be used as targeting value. * * @param string $url The URL to parse. * * @return string The parsed URL. */ - public static function parse_site_url( $url ) { + public static function parse_url( $url ) { // Remove the protocol. $url = str_replace( 'https://', '', $url ); $url = str_replace( 'http://', '', $url ); @@ -79,7 +79,7 @@ private static function get_targeting_key_config( $key ) { case 'site': $config['type'] = 'PREDEFINED'; $config['reportable_type'] = 'CUSTOM_DIMENSION'; - $config['values'] = [ self::parse_site_url( \get_bloginfo( 'url' ) ) ]; + $config['values'] = [ self::parse_url( \get_bloginfo( 'url' ) ) ]; break; } return $config;