Fix the issues reported by phpcs

Created on 5 July 2024, 5 months ago

Problem/Motivation

There is a files need to fixed with coding standards.
Here is the command : -
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig web/modules/contrib/drush_shell/

FILE: /var/www/html/test10/web/modules/contrib/drush_shell/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 3 | WARNING | Line exceeds 80 characters; contains 94 characters
 5 | WARNING | Line exceeds 80 characters; contains 142 characters
----------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/drush_shell/src/Drush/Commands/DrushPsyshCommands.php
----------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------
  7 | ERROR | [x] Missing class doc comment
  8 | ERROR | [x] Opening brace should be on the same line as the declaration
 16 | ERROR | [x] Expected 1 blank line before function; 0 found
 17 | ERROR | [x] Opening brace should be on the same line as the declaration
 22 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
 23 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
 25 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------


FILE: /var/www/html/test10/web/modules/contrib/drush_shell/drush_shell.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------

Time: 59ms; Memory: 10MB
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India chandansha

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024