Problem/Motivation
While checking with PHPCS, able to see some errors. Needs to fix them
Steps to reproduce
Run PHPCS can show us errors/suggestions
Proposed resolution
Check the errors/suggestions and need fix for them
FILE: /var/www/html/web/modules/contrib/find_external_links-3379871/src/Form/ConfigurationForm.php
--------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------
158 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
238 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
242 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot from 2023-08-08 13-54-46.png | 46.04 KB | shiv_sharma |
Issue fork find_external_links-3379871
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kpoornima commentedLooking on it
Comment #3
rajan kumar commentedComment #4
bhanutejaswi commentedComment #6
kpoornima commentedPlease review
Comment #7
nishantReview the above MR and it's working fine for me.
Comment #8
shiv_sharma commentedMR looks good no new warning on

src/Form/ConfigurationForm.phpfile.Comment #10
rajan kumar commentedI have review & merge above MR in latest version.
Comment #11
rajan kumar commented