- Issue created by @Shiv_Sharma
- 🇮🇳India Rajan Kumar
I have fixed this issue and latest code is committed in branch.
- Status changed to Fixed
about 1 year ago 5:53am 16 August 2023
after executing phpcs command getting below errors.
./vendor/bin/phpcs --standard="Drupal,DrupalPractice" --extensions="php,module,inc,install,test,profile,theme,info" web/modules/contrib/block_extras/
FILE: /home/shivsharma/project/test/web/modules/contrib/block_extras/block_extras.module
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\block_content\Entity\BlockContent.
54 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Block Extras'
64 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Block preview'
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
Time: 167ms; Memory: 10MB
Execute:
./vendor/bin/phpcs --standard="Drupal,DrupalPractice" --extensions="php,module,inc,install,test,profile,theme,info" web/modules/contrib/block_extras/
Fixed
1.0
Miscellaneous
I have fixed this issue and latest code is committed in branch.