Drupal Coding Standards Issues | phpcs

Created on 13 February 2023, almost 2 years ago
Updated 21 September 2023, over 1 year ago

Problem/Motivation

FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/cleantaxonomy/cleantaxonomy.drush.inc
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 9 | WARNING | [x] Unused use statement
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------


FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/cleantaxonomy/src/Form/CleanTaxonomyReplaceForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
  92 | WARNING | Unused variable $index.
 183 | ERROR   | Doc comment short description must start with a capital letter
 187 | WARNING | Unused variable $taxonomy_term_vid.
 220 | ERROR   | The array declaration extends to column 162 (the limit is 80). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/cleantaxonomy/src/Commands/CleantaxonomyCommands.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------------
 23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 24 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
 25 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
 26 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
 27 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

Time: 146ms; Memory: 10MB

Steps to reproduce

Run the following Command: phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml /drupal/modules/contrib/cleantaxonomy

Proposed resolution

Fix all the PHP coding standard issues/warnings.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India sahil.goyal

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

Comments & Activities

Production build 0.71.5 2024