Fix the issues reported by phpcs

Created on 23 February 2023, over 1 year ago
Updated 15 March 2023, over 1 year ago

Problem/Motivation

Getting following error/warnings.

FILE: /var/www/html/modules/contrib/disable_page_slash_node/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------
4 | WARNING | Line exceeds 80 characters; contains 145 characters
11 | WARNING | Line exceeds 80 characters; contains 89 characters
23 | WARNING | Line exceeds 80 characters; contains 84 characters
26 | WARNING | Line exceeds 80 characters; contains 100 characters
27 | WARNING | Line exceeds 80 characters; contains 113 characters
30 | WARNING | Line exceeds 80 characters; contains 101 characters
----------------------------------------------------------------------

FILE: /var/www/html/modules/contrib/disable_page_slash_node/src/EventSubscriber/RedirectNodeRouteSubscriber.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

Time: 1.12 secs; Memory: 6MB

Steps to reproduce

Run following command

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/disable_page_slash_node/

Proposed resolution

Above error/warnings need to be fixed.

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia samit.310@gmail.com

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