Problem/Motivation

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

Steps to reproduce

Execute:

 ./vendor/bin/phpcs   --standard="Drupal,DrupalPractice"   --extensions="php,module,inc,install,test,profile,theme,info" web/modules/contrib/block_extras/

Comments

Shiv_Sharma created an issue. See original summary.

shiv_sharma’s picture

Title: Fix the issues reported by phpcs on live_weather module » Fix the issues reported by phpcs on block_extras module

updated the issue

rajan kumar’s picture

Status: Active » Fixed

I have fixed this issue and latest code is committed in branch.

rajan kumar’s picture

Status: Fixed » Closed (fixed)