- Status changed to Needs work
almost 2 years ago 3:59pm 7 February 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
The patch in comment #14 is not complete.
- Status changed to Needs review
almost 2 years ago 7:46am 16 February 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
- The content of the css/different/node_modules/flag-icon-css and css/different/node_modules/opencollective-postinstall directories should not be touched, since they are coming for third-part repositories
- The SiteEntityMultiRegionExtensionStorage.php, SiteEntityDeleteForm.php, HrefLangExchangeFieldItemAutocompleteWidget.php, and LazyHrefItemSubscriberTest.php files have not been changed
- This issue is about what reported by phpcs, not PHPSTAN; patches and MRs for this issue should fix what reported in the issue summary
- Status changed to Needs work
over 1 year ago 9:34am 18 April 2023 - Status changed to Needs review
about 1 year ago 6:17am 11 October 2023 - 🇮🇳India pray_12
Hi,
The above patch applied cleanly, but I found a few PHPCS errors and warnings. I have addressed those errors and warnings in the updated patch Hi,
Applied #23 patch. The patch applied cleanly without any errors and ran the command phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml href_lang_exchange/
Didn't find any phpcs errors.- 🇮🇳India Yashaswi18
Tried applying the patch provided in #23. Applies cleanly.
Checking patch href_lang_exchange.module... Checking patch modules/href_lang_exchange_autoupdater/href_lang_exchange_autoupdater.module... Checking patch modules/href_lang_exchange_country_override/href_lang_exchange_country_override.module... Checking patch modules/href_lang_exchange_custom_logos/href_lang_exchange_custom_logos.module... Checking patch modules/href_lang_exchange_custom_logos/src/Controller/MultisiteLogosController.php... Checking patch modules/href_lang_exchange_href/src/Authentication/Provider/BasicTokenAuth.php... Checking patch modules/href_lang_exchange_href/src/Entity/SiteEntity.php... Checking patch modules/href_lang_exchange_href/src/Entity/SiteEntityInterface.php... Checking patch modules/href_lang_exchange_href/src/SiteEntityAccessControlHandler.php... Checking patch src/Connection/Connection.php... Checking patch src/Controller/JSONAPIEntityAutocompleteController.php... Checking patch src/Entity/HrefLangItem.php... Checking patch src/EventSubscriber/LazyHrefItemSubscriber.php... Checking patch src/HrefLangItemInterface.php... Checking patch src/Plugin/Block/HrefLanguageConnectionCountBlock.php... Checking patch src/Plugin/Block/HrefLanguageSwitchBlock.php... Checking patch src/Plugin/Field/FieldFormatter/HrefLangExchangeFieldItemFormatter.php... Checking patch src/Plugin/QueueWorker/HrefLangUpdateQueue.php... Checking patch src/Service/HrefLangItemValidator.php... Checking patch tests/src/Unit/Connection/ConnectionTest.php... Applied patch href_lang_exchange.module cleanly. Applied patch modules/href_lang_exchange_autoupdater/href_lang_exchange_autoupdater.module cleanly. Applied patch modules/href_lang_exchange_country_override/href_lang_exchange_country_override.module cleanly. Applied patch modules/href_lang_exchange_custom_logos/href_lang_exchange_custom_logos.module cleanly. Applied patch modules/href_lang_exchange_custom_logos/src/Controller/MultisiteLogosController.php cleanly. Applied patch modules/href_lang_exchange_href/src/Authentication/Provider/BasicTokenAuth.php cleanly. Applied patch modules/href_lang_exchange_href/src/Entity/SiteEntity.php cleanly. Applied patch modules/href_lang_exchange_href/src/Entity/SiteEntityInterface.php cleanly. Applied patch modules/href_lang_exchange_href/src/SiteEntityAccessControlHandler.php cleanly. Applied patch src/Connection/Connection.php cleanly. Applied patch src/Controller/JSONAPIEntityAutocompleteController.php cleanly. Applied patch src/Entity/HrefLangItem.php cleanly. Applied patch src/EventSubscriber/LazyHrefItemSubscriber.php cleanly. Applied patch src/HrefLangItemInterface.php cleanly. Applied patch src/Plugin/Block/HrefLanguageConnectionCountBlock.php cleanly. Applied patch src/Plugin/Block/HrefLanguageSwitchBlock.php cleanly. Applied patch src/Plugin/Field/FieldFormatter/HrefLangExchangeFieldItemFormatter.php cleanly. Applied patch src/Plugin/QueueWorker/HrefLangUpdateQueue.php cleanly. Applied patch src/Service/HrefLangItemValidator.php cleanly. Applied patch tests/src/Unit/Connection/ConnectionTest.php cleanly.
Ran the command phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml href_lang_exchange/, found no errors remaining.
- Status changed to RTBC
9 months ago 3:44pm 29 February 2024 - Status changed to Needs work
9 months ago 8:56pm 29 February 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
-function __handle_multisite_creation(EntityInterface $entity, array $region, LazyStoreInterface $lazy_store, &$entities) { +function href_lang_exchange_country_override_handle_multisite_creation(EntityInterface $entity, array $region, LazyStoreInterface $lazy_store, &$entities) {
The first underscore at the beginning of the function name cannot be removed, since it is used to mean the function is not part of the public API the module exposes.
-function load_all() { +function href_lang_exchange_autoupdater_load_all() {
While the new function name is the correct one, the change is not backward compatible.
At least, any call to that function in the modules part of this project should be corrected. That does not avoid any issue with other modules that depend on the module definingload_all()
.