Problem/Motivation
Getting following error/warnings.
FILE: /var/www/html/modules/contrib/content_moderation_link/content_moderation_link.module
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
15 | ERROR | [x] Expected 2 space(s) before asterisk; 1 found
16 | ERROR | [x] Expected 2 space(s) before asterisk; 1 found
17 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "content_moderation_links_help" but expected
| | "content_moderation_link_content_moderation_links_help"
17 | ERROR | [x] Expected 1 space after FUNCTION keyword; 2 found
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/content_moderation_link/src/Form/SettingsForm.php
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------
59 | WARNING | Possible useless method overriding detected
-------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/content_moderation_link/src/Controller/ContentModerationLinkController.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
105 | WARNING | Unused variable $trans_id.
--------------------------------------------------------------------------------------------------------------
Time: 3.22 secs; Memory: 6MB
Steps to reproduce
Run following command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/content_moderation_link/
Proposed resolution
Above error/warnings need to be fixed.