- Issue created by @Prachi6824
- Assigned to Prachi6824
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 2:32pm 4 July 2023 - š®š³India Prachi6824
Hello,
I have created a patch to solve the issue.
Please review and apply it .
- Status changed to Needs work
5 months ago 9:22am 7 June 2024 Hi @prachi6824,
Applied your patch successfully, however it threw multiple errors. Please see below:
search_api_pinecone-search_api_pinecone git:(1.0.x) curl https://www.drupal.org/files/issues/2023-07-04/unused-variable-issue-3372283-%233.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4244 100 4244 0 0 14403 0 --:--:-- --:--:-- --:--:-- 15157 patching file search_api_pinecone.module patching file src/Plugin/search_api/backend/SearchApiPineconeBackend.php ā search_api_pinecone-search_api_pinecone git:(1.0.x) ā cd .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig search_api_pinecone-search_api_pinecone FILE: ...rupal-orgissue/web/modules/contrib/search_api_pinecone-search_api_pinecone/search_api_pinecone.module ----------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES ----------------------------------------------------------------------------------------------------------- 65 | WARNING | #options values usually have to run through t() for translation 66 | WARNING | #options values usually have to run through t() for translation 67 | WARNING | #options values usually have to run through t() for translation ----------------------------------------------------------------------------------------------------------- FILE: ...ib/search_api_pinecone-search_api_pinecone/src/Plugin/search_api/backend/SearchApiPineconeBackend.php ----------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES ----------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is | | Drupal\Component\Serialization\Json. 266 | WARNING | [ ] Unused variable $pinecode_client. 280 | WARNING | [ ] Unused variable $pinecode_client. 318 | WARNING | [ ] t() calls should be avoided in classes, use | | \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead ----------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------- Time: 347ms; Memory: 12MB
Kindly check.
Thanks,
Jake