Minor phpcs issues in the .module file.

Created on 7 July 2023, almost 2 years ago
Updated 5 November 2023, over 1 year ago

Problem/Motivation

Upon running phpcs, the module only throws three errors. Theses are in the module file as follows:

C:\xampp\htdocs\backendassignment\web\modules\contrib>phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig glossify
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\glossify\modules\glossify_taxonomy\glossify_taxonomy.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] End of line character is invalid; expected "\n" but found "\r\n"
  9 | WARNING | [x] Unused use statement
 14 | ERROR   | [ ] All functions defined in a module file must be prefixed with the module's name, found "glossify_taxonomies_help" but expected "glossify_taxonomy_glossify_taxonomies_help"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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