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
Comments
Comment #2
sahil.goyal commentedApplying the patch to fix all the PHP coding standard issues and warnings.
Comment #3
hardikpandya commentedI have checked the patch is applying and there are no more phpcs issues reported. Marking as RTBC!
Comment #6
anmolgoyal74 commentedFixed. Push to 2.0.x.
Thanks.