From 453d73842f157c8851f62b19fdd9c71e7bbf779b Mon Sep 17 00:00:00 2001 From: arpeggio <3452-arpeggio@users.noreply.drupalcode.org> Date: Fri, 3 Mar 2023 13:22:04 +0800 Subject: [PATCH] Issue #3332499 by arpeggio: Update SmartIpEventSubscriber.php --- .../EventSubscriber/SmartIpEventSubscriber.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/smart_ip_ipinfodb_web_service/src/EventSubscriber/SmartIpEventSubscriber.php b/modules/smart_ip_ipinfodb_web_service/src/EventSubscriber/SmartIpEventSubscriber.php index bc3cbdf..6f9617a 100644 --- a/modules/smart_ip_ipinfodb_web_service/src/EventSubscriber/SmartIpEventSubscriber.php +++ b/modules/smart_ip_ipinfodb_web_service/src/EventSubscriber/SmartIpEventSubscriber.php @@ -16,7 +16,7 @@ use Drupal\Core\Link; use Drupal\Core\Url; /** - * Core functionalty of this Smart IP data source module. + * Core functionality of this Smart IP data source module. * Listens to Smart IP override events. * * @package Drupal\smart_ip_ipinfodb_web_service\EventSubscriber @@ -26,14 +26,14 @@ class SmartIpEventSubscriber extends SmartIpEventSubscriberBase { /** * {@inheritdoc} */ - public static function sourceId() { + public static function sourceId(): string { return 'ipinfodb_web_service'; } /** * {@inheritdoc} */ - public static function configName() { + public static function configName(): string { return 'smart_ip_ipinfodb_web_service.settings'; } @@ -122,10 +122,10 @@ class SmartIpEventSubscriber extends SmartIpEventSubscriberBase { $config = \Drupal::config(self::configName()); $form = $event->getForm(); $form['smart_ip_data_source_selection']['smart_ip_data_source']['#options'][self::sourceId()] = t( - "Use @ipinfodb web service. The @ip2location free version database is used - by @ipinfodb in their web service. You will need an API key to use this - and you must be @login to get it. Note: if @ipinfodb respond too slow to - geolocation request, your site's performance will be affected specially if + "Use @ipinfodb web service. The @ip2location free version database is used + by @ipinfodb in their web service. You will need an API key to use this + and you must be @login to get it. Note: if @ipinfodb respond too slow to + geolocation request, your site's performance will be affected specially if Smart IP is configured to geolocate anonymous users.", [ '@ipinfodb' => Link::fromTextAndUrl(t('IPInfoDB.com'), Url::fromUri('http://www.ipinfodb.com'))->toString(), '@ip2location' => Link::fromTextAndUrl(t('IP2Location'), Url::fromUri('http://www.ip2location.com'))->toString(), @@ -147,7 +147,7 @@ class SmartIpEventSubscriber extends SmartIpEventSubscriberBase { '#type' => 'textfield', '#title' => t('IPInfoDB API key'), '#description' => t( - 'The use of IPInfoDB.com service requires API key. Registration for the + 'The use of IPInfoDB.com service requires API key. Registration for the new API key is free, sign up @here.', [ '@here' => Link::fromTextAndUrl(t('here'), Url::fromUri('http://www.ipinfodb.com/register.php'))->toString(), ] -- GitLab