From 988da2be745c5f24e910614086bc4b01aada154b Mon Sep 17 00:00:00 2001
From: Rajeshreeputra <pravin.gaikwad@acquia.com>
Date: Thu, 13 Jun 2024 11:38:56 +0530
Subject: [PATCH] Fix phpcs warnings.

---
 README.md                                              | 10 ++++++----
 geocoder.module                                        |  2 +-
 geocoder.post_update.php                               |  2 +-
 .../Field/FieldFormatter/AddressGeocodeFormatter.php   |  2 +-
 modules/geocoder_field/geocoder_field.post_update.php  |  2 +-
 modules/geocoder_field/src/Geocoder/Provider/File.php  |  2 +-
 .../geocoder_field/src/GeocoderFieldPluginManager.php  |  4 ++--
 .../Field/FieldFormatter/FileGeocodeFormatter.php      |  2 +-
 .../src/Plugin/Field/GeocodeFormatterBase.php          |  4 ++--
 .../src/Plugin/Geocoder/Field/DefaultField.php         |  2 +-
 .../geocoder_geofield/src/Geocoder/Dumper/Geometry.php |  2 +-
 .../Geocoder/Provider/GeometryProviderInterface.php    |  2 +-
 .../Field/FieldFormatter/GeoPhpGeocodeFormatter.php    |  2 +-
 .../FieldFormatter/ReverseGeocodeGeofieldFormatter.php |  2 +-
 src/ConfigurableProviderUsingHandlerBase.php           |  2 +-
 ...ConfigurableProviderUsingHandlerWithAdapterBase.php |  2 +-
 src/Controller/GeocoderApiEnpoints.php                 |  2 +-
 src/Entity/GeocoderProvider.php                        |  2 +-
 src/Form/GeocoderProviderAddForm.php                   |  2 +-
 src/Form/GeocoderProviderCreationForm.php              |  2 +-
 src/Form/GeocoderProviderEditForm.php                  |  2 +-
 src/Form/GeocoderProviderFormBase.php                  |  2 +-
 src/Geocoder.php                                       |  2 +-
 src/GeocoderProviderInterface.php                      |  2 +-
 src/GeocoderProviderListBuilder.php                    |  2 +-
 src/Plugin/Geocoder/Dumper/AddressText.php             |  2 +-
 src/Plugin/GeocoderProviderPluginCollection.php        |  2 +-
 src/ProviderPluginManager.php                          |  4 ++--
 src/Traits/ConfigurableProviderTrait.php               |  2 +-
 29 files changed, 37 insertions(+), 35 deletions(-)

diff --git a/README.md b/README.md
index 1dce7629..ecc734c1 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,8 @@ php-http/guzzle6-adapter dependency (see issue #3283651).
 
 ### How to seamlessly upgrade to Drupal 10 & Geocoder 4.x ... ###
 
-When preparing for an upgrade to Drupal 10 we recommend that you widen your composer version constraints to allow either 3.x or 4.x.
+When preparing for an upgrade to Drupal 10 we recommend that you widen
+your composer version constraints to allow either 3.x or 4.x.
 Edit composer.json the following way:
 
 ```
@@ -467,9 +468,10 @@ In Geocoder 2.x `\Drupal\geocoder\ProviderPluginManager::getPlugins()` was the
 main way of retrieving the provider plugins. It was returning the plugin
 definitions with the provider configuration mixed into it.
 
-Since Geocdoer 3.x this data model has been replaced by the new `GeocoderProvider`
-config entity. Now this method returns the list of plugin definitions, making it
-the same result as calling ProviderPluginManager::getDefinitions().
+Since Geocdoer 3.x this data model has been replaced by the new
+`GeocoderProvider` config entity. Now this method returns the list of
+plugin definitions, making it the same result as
+calling ProviderPluginManager::getDefinitions().
 
 It is recommended to no longer use this method but instead use one of these
 two alternatives:
diff --git a/geocoder.module b/geocoder.module
index 087dabe5..de28a88f 100644
--- a/geocoder.module
+++ b/geocoder.module
@@ -5,7 +5,7 @@
  * Geocoder Module.
  */
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 use Drupal\Core\Routing\RouteMatchInterface;
 
diff --git a/geocoder.post_update.php b/geocoder.post_update.php
index 54e49e96..d3baad7b 100644
--- a/geocoder.post_update.php
+++ b/geocoder.post_update.php
@@ -5,7 +5,7 @@
  * Post update functions for Geocoder.
  */
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 use Drupal\Core\Entity\EntityStorageException;
 use Drupal\geocoder\Entity\GeocoderProvider;
diff --git a/modules/geocoder_address/src/Plugin/Field/FieldFormatter/AddressGeocodeFormatter.php b/modules/geocoder_address/src/Plugin/Field/FieldFormatter/AddressGeocodeFormatter.php
index e9d9d813..8cde782e 100644
--- a/modules/geocoder_address/src/Plugin/Field/FieldFormatter/AddressGeocodeFormatter.php
+++ b/modules/geocoder_address/src/Plugin/Field/FieldFormatter/AddressGeocodeFormatter.php
@@ -82,7 +82,7 @@ class AddressGeocodeFormatter extends GeocodeFormatter {
     RendererInterface $renderer,
     LinkGeneratorInterface $link_generator,
     EntityTypeManagerInterface $entity_type_manager,
-    AddressService $address_service
+    AddressService $address_service,
   ) {
     parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $geocoder, $provider_plugin_manager, $dumper_plugin_manager, $renderer, $link_generator, $entity_type_manager);
     $this->addressService = $address_service;
diff --git a/modules/geocoder_field/geocoder_field.post_update.php b/modules/geocoder_field/geocoder_field.post_update.php
index 1b6fc049..0204958f 100644
--- a/modules/geocoder_field/geocoder_field.post_update.php
+++ b/modules/geocoder_field/geocoder_field.post_update.php
@@ -5,7 +5,7 @@
  * Post update functions for Geocoder Field.
  */
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 use Drupal\field\Entity\FieldConfig;
 
diff --git a/modules/geocoder_field/src/Geocoder/Provider/File.php b/modules/geocoder_field/src/Geocoder/Provider/File.php
index 84c27e96..df66d55f 100644
--- a/modules/geocoder_field/src/Geocoder/Provider/File.php
+++ b/modules/geocoder_field/src/Geocoder/Provider/File.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder_field\Geocoder\Provider;
 
diff --git a/modules/geocoder_field/src/GeocoderFieldPluginManager.php b/modules/geocoder_field/src/GeocoderFieldPluginManager.php
index 7dfd9324..f76f9a1b 100644
--- a/modules/geocoder_field/src/GeocoderFieldPluginManager.php
+++ b/modules/geocoder_field/src/GeocoderFieldPluginManager.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder_field;
 
@@ -50,7 +50,7 @@ class GeocoderFieldPluginManager extends DefaultPluginManager {
     CacheBackendInterface $cache_backend,
     ModuleHandlerInterface $module_handler,
     PreprocessorPluginManager $preprocessor_plugin_manager,
-    EntityFieldManagerInterface $entity_field_manager
+    EntityFieldManagerInterface $entity_field_manager,
   ) {
     parent::__construct('Plugin/Geocoder/Field', $namespaces, $module_handler, GeocoderFieldPluginInterface::class, GeocoderField::class);
     $this->alterInfo('geocode_field_info');
diff --git a/modules/geocoder_field/src/Plugin/Field/FieldFormatter/FileGeocodeFormatter.php b/modules/geocoder_field/src/Plugin/Field/FieldFormatter/FileGeocodeFormatter.php
index fb4ea8cc..e403c4f6 100644
--- a/modules/geocoder_field/src/Plugin/Field/FieldFormatter/FileGeocodeFormatter.php
+++ b/modules/geocoder_field/src/Plugin/Field/FieldFormatter/FileGeocodeFormatter.php
@@ -92,7 +92,7 @@ class FileGeocodeFormatter extends GeocodeFormatterBase {
     RendererInterface $renderer,
     LinkGeneratorInterface $link_generator,
     EntityTypeManagerInterface $entity_type_manager,
-    PreprocessorPluginManager $preprocessor_manager
+    PreprocessorPluginManager $preprocessor_manager,
   ) {
     parent::__construct(
       $plugin_id,
diff --git a/modules/geocoder_field/src/Plugin/Field/GeocodeFormatterBase.php b/modules/geocoder_field/src/Plugin/Field/GeocodeFormatterBase.php
index 7fae6ca1..abd120d4 100644
--- a/modules/geocoder_field/src/Plugin/Field/GeocodeFormatterBase.php
+++ b/modules/geocoder_field/src/Plugin/Field/GeocodeFormatterBase.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder_field\Plugin\Field;
 
@@ -121,7 +121,7 @@ abstract class GeocodeFormatterBase extends FormatterBase implements ContainerFa
     DumperPluginManager $dumper_plugin_manager,
     RendererInterface $renderer,
     LinkGeneratorInterface $link_generator,
-    EntityTypeManagerInterface $entity_type_manager
+    EntityTypeManagerInterface $entity_type_manager,
   ) {
     parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
     $this->geocoder = $geocoder;
diff --git a/modules/geocoder_field/src/Plugin/Geocoder/Field/DefaultField.php b/modules/geocoder_field/src/Plugin/Geocoder/Field/DefaultField.php
index ba3c21c5..5aa9eec9 100644
--- a/modules/geocoder_field/src/Plugin/Geocoder/Field/DefaultField.php
+++ b/modules/geocoder_field/src/Plugin/Geocoder/Field/DefaultField.php
@@ -128,7 +128,7 @@ class DefaultField extends PluginBase implements GeocoderFieldPluginInterface, C
     ProviderPluginManager $provider_plugin_manager,
     RendererInterface $renderer,
     LinkGeneratorInterface $link_generator,
-    EntityTypeManagerInterface $entity_type_manager
+    EntityTypeManagerInterface $entity_type_manager,
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->config = $config_factory->get('geocoder.settings');
diff --git a/modules/geocoder_geofield/src/Geocoder/Dumper/Geometry.php b/modules/geocoder_geofield/src/Geocoder/Dumper/Geometry.php
index f30f256d..e53487d4 100644
--- a/modules/geocoder_geofield/src/Geocoder/Dumper/Geometry.php
+++ b/modules/geocoder_geofield/src/Geocoder/Dumper/Geometry.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder_geofield\Geocoder\Dumper;
 
diff --git a/modules/geocoder_geofield/src/Geocoder/Provider/GeometryProviderInterface.php b/modules/geocoder_geofield/src/Geocoder/Provider/GeometryProviderInterface.php
index e9c09aa7..6117c391 100644
--- a/modules/geocoder_geofield/src/Geocoder/Provider/GeometryProviderInterface.php
+++ b/modules/geocoder_geofield/src/Geocoder/Provider/GeometryProviderInterface.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder_geofield\Geocoder\Provider;
 
diff --git a/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/GeoPhpGeocodeFormatter.php b/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/GeoPhpGeocodeFormatter.php
index 4ed60604..5586f3fb 100644
--- a/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/GeoPhpGeocodeFormatter.php
+++ b/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/GeoPhpGeocodeFormatter.php
@@ -77,7 +77,7 @@ abstract class GeoPhpGeocodeFormatter extends FileGeocodeFormatter {
     LinkGeneratorInterface $link_generator,
     EntityTypeManagerInterface $entity_type_manager,
     PreprocessorPluginManager $preprocessor_manager,
-    GeoPHPInterface $geophp_wrapper
+    GeoPHPInterface $geophp_wrapper,
   ) {
     parent::__construct(
       $plugin_id,
diff --git a/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/ReverseGeocodeGeofieldFormatter.php b/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/ReverseGeocodeGeofieldFormatter.php
index 8fc5a17a..a9764869 100644
--- a/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/ReverseGeocodeGeofieldFormatter.php
+++ b/modules/geocoder_geofield/src/Plugin/Field/FieldFormatter/ReverseGeocodeGeofieldFormatter.php
@@ -82,7 +82,7 @@ class ReverseGeocodeGeofieldFormatter extends GeocodeFormatter {
     RendererInterface $renderer,
     LinkGeneratorInterface $link_generator,
     EntityTypeManagerInterface $entity_type_manager,
-    GeoPHPInterface $geophp_wrapper
+    GeoPHPInterface $geophp_wrapper,
   ) {
     parent::__construct(
       $plugin_id,
diff --git a/src/ConfigurableProviderUsingHandlerBase.php b/src/ConfigurableProviderUsingHandlerBase.php
index 3b37d3ed..ede49ca7 100644
--- a/src/ConfigurableProviderUsingHandlerBase.php
+++ b/src/ConfigurableProviderUsingHandlerBase.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder;
 
diff --git a/src/ConfigurableProviderUsingHandlerWithAdapterBase.php b/src/ConfigurableProviderUsingHandlerWithAdapterBase.php
index 71c9345c..526a39e2 100644
--- a/src/ConfigurableProviderUsingHandlerWithAdapterBase.php
+++ b/src/ConfigurableProviderUsingHandlerWithAdapterBase.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder;
 
diff --git a/src/Controller/GeocoderApiEnpoints.php b/src/Controller/GeocoderApiEnpoints.php
index c7c910ea..81d39c3c 100644
--- a/src/Controller/GeocoderApiEnpoints.php
+++ b/src/Controller/GeocoderApiEnpoints.php
@@ -206,7 +206,7 @@ class GeocoderApiEnpoints extends ControllerBase {
     EntityTypeManagerInterface $entity_type_manager,
     Geocoder $geocoder,
     DumperPluginManager $dumper_plugin_manager,
-    FormatterPluginManager $geocoder_formatter_plugin_manager
+    FormatterPluginManager $geocoder_formatter_plugin_manager,
   ) {
     $this->config = $config_factory->get('geocoder.settings');
     $this->entityTypeManager = $entity_type_manager;
diff --git a/src/Entity/GeocoderProvider.php b/src/Entity/GeocoderProvider.php
index e0601eaa..7fd8aea2 100644
--- a/src/Entity/GeocoderProvider.php
+++ b/src/Entity/GeocoderProvider.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder\Entity;
 
diff --git a/src/Form/GeocoderProviderAddForm.php b/src/Form/GeocoderProviderAddForm.php
index e0573037..34fad554 100644
--- a/src/Form/GeocoderProviderAddForm.php
+++ b/src/Form/GeocoderProviderAddForm.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder\Form;
 
diff --git a/src/Form/GeocoderProviderCreationForm.php b/src/Form/GeocoderProviderCreationForm.php
index f31fcd60..a8d232bd 100644
--- a/src/Form/GeocoderProviderCreationForm.php
+++ b/src/Form/GeocoderProviderCreationForm.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder\Form;
 
diff --git a/src/Form/GeocoderProviderEditForm.php b/src/Form/GeocoderProviderEditForm.php
index af5223b7..2420e42b 100644
--- a/src/Form/GeocoderProviderEditForm.php
+++ b/src/Form/GeocoderProviderEditForm.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder\Form;
 
diff --git a/src/Form/GeocoderProviderFormBase.php b/src/Form/GeocoderProviderFormBase.php
index bc399a94..cfca7711 100644
--- a/src/Form/GeocoderProviderFormBase.php
+++ b/src/Form/GeocoderProviderFormBase.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder\Form;
 
diff --git a/src/Geocoder.php b/src/Geocoder.php
index 8bd4a7e0..b9fa8d70 100644
--- a/src/Geocoder.php
+++ b/src/Geocoder.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder;
 
diff --git a/src/GeocoderProviderInterface.php b/src/GeocoderProviderInterface.php
index bf41da2d..814e92b4 100644
--- a/src/GeocoderProviderInterface.php
+++ b/src/GeocoderProviderInterface.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder;
 
diff --git a/src/GeocoderProviderListBuilder.php b/src/GeocoderProviderListBuilder.php
index eeddafd6..97056a75 100644
--- a/src/GeocoderProviderListBuilder.php
+++ b/src/GeocoderProviderListBuilder.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder;
 
diff --git a/src/Plugin/Geocoder/Dumper/AddressText.php b/src/Plugin/Geocoder/Dumper/AddressText.php
index dd3672d2..23c5605d 100644
--- a/src/Plugin/Geocoder/Dumper/AddressText.php
+++ b/src/Plugin/Geocoder/Dumper/AddressText.php
@@ -49,7 +49,7 @@ class AddressText extends DumperBase {
     array $configuration,
     $plugin_id,
     $plugin_definition,
-    FormatterPluginManager $geocoder_formatter_plugin_manager
+    FormatterPluginManager $geocoder_formatter_plugin_manager,
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->geocoderFormatterPluginManager = $geocoder_formatter_plugin_manager;
diff --git a/src/Plugin/GeocoderProviderPluginCollection.php b/src/Plugin/GeocoderProviderPluginCollection.php
index 15aa51ff..feb26e23 100644
--- a/src/Plugin/GeocoderProviderPluginCollection.php
+++ b/src/Plugin/GeocoderProviderPluginCollection.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder\Plugin;
 
diff --git a/src/ProviderPluginManager.php b/src/ProviderPluginManager.php
index 76a3f83d..eca1810a 100644
--- a/src/ProviderPluginManager.php
+++ b/src/ProviderPluginManager.php
@@ -2,12 +2,12 @@
 
 namespace Drupal\geocoder;
 
+use Drupal\Component\Serialization\Yaml;
 use Drupal\Core\Cache\CacheBackendInterface;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Messenger\MessengerInterface;
 use Drupal\Core\Render\RendererInterface;
-use Drupal\Component\Serialization\Yaml;
 use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
 use Drupal\Core\StringTranslation\StringTranslationTrait;
 use Drupal\Core\StringTranslation\TranslationInterface;
@@ -79,7 +79,7 @@ class ProviderPluginManager extends GeocoderPluginManagerBase {
     RendererInterface $renderer,
     LinkGeneratorInterface $link_generator,
     EntityTypeManagerInterface $entity_type_manager,
-    MessengerInterface $messenger
+    MessengerInterface $messenger,
   ) {
     parent::__construct('Plugin/Geocoder/Provider', $namespaces, $module_handler, ProviderInterface::class, GeocoderProvider::class);
     $this->alterInfo('geocoder_provider_info');
diff --git a/src/Traits/ConfigurableProviderTrait.php b/src/Traits/ConfigurableProviderTrait.php
index feec6405..df833f54 100644
--- a/src/Traits/ConfigurableProviderTrait.php
+++ b/src/Traits/ConfigurableProviderTrait.php
@@ -1,6 +1,6 @@
 <?php
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Drupal\geocoder\Traits;
 
-- 
GitLab