- Issue created by @Nishant
- ๐ฎ๐ณIndia Rajan Kumar
Rajan Kumar โ made their first commit to this issueโs fork.
- @rajan-kumar opened merge request.
- Status changed to Fixed
over 1 year ago 10:31am 9 August 2023
administrator@admin:/var/www/html/my-drupal10-site$ vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /var/www/html/my-drupal10-site/web/modules/contrib/find_external_links/
FILE: /var/www/html/my-drupal10-site/web/modules/contrib/find_external_links/src/Controller/FindExternalLinksController.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Render\FormattableMarkup.
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/my-drupal10-site/web/modules/contrib/find_external_links/src/Form/ConfigurationForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Database\Connection.
219 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /var/www/html/my-drupal10-site/web/modules/contrib/find_external_links/
Run this command
vendor/bin/phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /var/www/html/my-drupal10-site/web/modules/contrib/find_external_links/
Fixed
3.0
Code
It involves compliance with, or the content of coding standards. Requires broad community agreement.
Rajan Kumar โ made their first commit to this issueโs fork.