Fix the issues reported by phpcs

Created on 4 April 2024, 3 months ago

Problem/Motivation

Here is the command : -
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/tagify/

FILE: /var/www/html/drupal-contri-d10/modules/contrib/tagify/css/tagify.css
---------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------
   4 | ERROR | [x] Blank lines are not allowed in class definitions
 120 | ERROR | [x] Blank lines are not allowed in class definitions
---------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/tagify/modules/tagify_user_list/tagify_user_list.routing.yml
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
 6 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run PHPCS on tagify module.

Proposed resolution

Fixed the coding standards.

📌 Task
Status

Closed: cannot reproduce

Version

1.2

Component

Code

Created by

🇮🇳India bhaveshdas

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.69.0 2024