Drupal Coding Standards Issues | phpcs

Created on 3 February 2023, almost 2 years ago
Updated 4 February 2023, almost 2 years ago

Problem/Motivation

Getting following error.

Steps to reproduce

FILE: /var/www/html/modules/contrib/replicate_actions/src/EventSubscriber/ReplicateSetNodeEdit.php
--------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------
29 | ERROR | Missing parameter comment
52 | ERROR | If there is no return value for a function, there must not be a @return tag.
52 | ERROR | Description for the @return value is missing
--------------------------------------------------------------------------------------------------

Time: 1.89 secs; Memory: 6MB

Proposed resolution

Run following command

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

Remaining tasks

Above errors 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