- Issue created by @Prachi6824
- Assigned to Prachi6824
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 2:56pm 4 July 2023 - 🇮🇳India Prachi6824
Hello,
I have created a patch to solve the issue.
Please review and apply it .
- Assigned to jay jangid
- Issue was unassigned.
- 🇮🇳India jay jangid Jaipur
Hey @prachi6824 i have tested this issue in drupal 9.5.0.
Steps followed by me:-
1. Installed the module "search_api_pinecone".
2. Run this php code standard command to detect the errors reporeted by the php code sniffer.
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml search_api_pineconeAfter applied this command i am getting these types of errors:-
FILE: C:\Users\Admin\Desktop\task\search_api_pinecone\search_api_pinecone.module -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...ch_api_pinecone\src\Plugin\search_api\backend\SearchApiPineconeBackend.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- Time: 466ms; Memory: 10MB
then applied this command "phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml search_api_pinecone"
for remove above errors.see screenshot for references.
Thank you.