Fix the issues reported by PHP_CodeSniffer

Created on 23 November 2023, 7 months ago
Updated 5 December 2023, 7 months ago

Problem/Motivation

Reviewing drupal coding standard if followed. phpcs flagged some issues

phpcs command used
./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/views_sort_length/

Steps to reproduce

- Run command above against this module.
- Run auto fix command ./vendor/bin/phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/views_sort_length/
- remaining issues

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/views_sort_length/src/Plugin/views/sort/Length.php
------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------
7 | ERROR | Missing short description in doc comment
14 | ERROR | Missing short description in doc comment
15 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------------------------------------

FILE: /opt/lampp/htdocs/develop/web/modules/contrib/views_sort_length/views_sort_length.module
----------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
9 | ERROR | Missing short description in doc comment
10 | ERROR | Missing parameter comment
12 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------

Proposed resolution

- Fixing these remaining issues.

Thank you. for providing this great module to the community.

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฒ๐Ÿ‡ผMalawi chancenyasulu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024