- Issue created by @arti_parmar
- Assigned to shyam-sawhney
- Assigned to arti_parmar
- Status changed to Needs review
about 1 year ago 11:18am 6 June 2023 - Status changed to Needs work
about 1 year ago 11:32am 6 June 2023 - 🇵ðŸ‡Philippines clarkssquared
Hi arti_parmar
I applied your patch #3 to my local and here's my feedback:
1. The patch applies but the whitespace error has been flagged.
Applied patch src/Controller/SidekickController.php cleanly.
Applied patch src/Form/SettingsForm.php cleanly.
Applied patch src/SidekickService.php cleanly.
warning: 1 line adds whitespace errors.2. When I run phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml sidekick/ there are still warning being flagged.
FILE: /Users/studenttrainees/Projects/drupalorgissues/docroot/modules/contrib/sidekick/sidekick.module
----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
92 | WARNING | Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
92 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
----------------------------------------------------------------------------------------------------------------------3. I also added DrupalPractice standard in phpcs command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml sidekick and below are the warnings being flagged.
FILE: /Users/studenttrainees/Projects/drupalorgissues/docroot/modules/contrib/sidekick/sidekick.module
----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
92 | WARNING | Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
92 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
----------------------------------------------------------------------------------------------------------------------FILE: /Users/studenttrainees/Projects/drupalorgissues/docroot/modules/contrib/sidekick/src/SidekickService.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
56 | WARNING | Unused variable $apiResponse.
--------------------------------------------------------------------------------------------------------------FILE: /Users/studenttrainees/Projects/drupalorgissues/docroot/modules/contrib/sidekick/src/Form/SettingsForm.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------
59 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
61 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
72 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------Time: 281ms; Memory: 10MB
Please fix the warnings if possible.
Thank you.
- Status changed to Postponed
about 1 year ago 2:09pm 9 June 2023