Problem/Motivation

FILE: /var/www/html/web/modules/menu_title_length/menu_title_length.module
----------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteMatchInterface.
39 | ERROR | [x] Expected 1 space before "!="; 0 found
39 | ERROR | [x] Expected 1 space after "!="; 0 found
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/menu_title_length/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
15 | WARNING | Line exceeds 80 characters; contains 95 characters
27 | WARNING | Line exceeds 80 characters; contains 97 characters
----------------------------------------------------------------------

Steps to reproduce

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

Proposed resolution

It will fix some automatic and after that we can fix the remaining manually
./vendor/bin/phpcbf --standard="Drupal,DrupalPractice" --extensions="php,module,inc,install,test,profile,theme,md" web/modules/menu_title_length/

Command icon 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

Nishant created an issue. See original summary.

nishant’s picture

Assigned: nishant » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.3 KB

Provided patch for the above issue.

shiv_sharma’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new43.29 KB

patch applied successfully. added the screenshot for reference

Rajan Kumar made their first commit to this issue’s fork.

rajan kumar’s picture

Status: Reviewed & tested by the community » Fixed

I have reviewed and updated patch in latest version

rajan kumar’s picture

Status: Fixed » Closed (fixed)