Fix the issues reported by phpcs

Created on 25 July 2023, over 1 year ago
Updated 26 July 2023, over 1 year ago

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/

๐Ÿ“Œ Task
Status

Fixed

Version

1.5

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Nishant

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024