From 64d27ea236fcfe922318b9bead75a4fef3ce5738 Mon Sep 17 00:00:00 2001 From: indigoxela Date: Wed, 20 Nov 2024 08:45:53 +0100 Subject: [PATCH] Minor coding standard fixes --- geoip_tokens.module | 2 ++ geoip_tokens.rules.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/geoip_tokens.module b/geoip_tokens.module index dfcbe5e..683ee17 100644 --- a/geoip_tokens.module +++ b/geoip_tokens.module @@ -41,6 +41,7 @@ function geoip_tokens_deliver_ajax() { } $args = arg(); + $result = NULL; if (count($args) == 3) { switch ($args[2]) { case 'latlon': @@ -245,6 +246,7 @@ function geoip_tokens_retrieve_external($ip) { * Helper function to flatten data arrays. * * @param array $remote_data + * Array of data retrieved from remote service. * * @return array */ diff --git a/geoip_tokens.rules.inc b/geoip_tokens.rules.inc index 6f92243..eb2a450 100644 --- a/geoip_tokens.rules.inc +++ b/geoip_tokens.rules.inc @@ -77,7 +77,7 @@ function geoip_tokens_rules_condition_info() { /** * Checks if the detected country matches to one in the list. * - * @param array $countries + * @param array|string $countries * List of countries to check against. * * @return bool