Problem/Motivation

Getting following error/warnings.

FILE: /var/www/html/modules/contrib/imagefieldzoom/imagefield_zoom.module
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
23 | ERROR | [x] Hook implementations must be documented with "Implements hook_example()."
26 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 2.34 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/imagefieldzoom/

Proposed resolution

Above error/warnings need to be fixed.

CommentFileSizeAuthor
#3 after-patch.png197.7 KBsourabhjain
#3 before-patch.png518.39 KBsourabhjain
#2 3345112-2.patch653 bytessamitk
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

samit.310@gmail.com created an issue. See original summary.

samitk’s picture

Assigned: samitk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new653 bytes

Above errors/warning are fixed.

sourabhjain’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new518.39 KB
new197.7 KB

I have reviewed the patch #2 and its working fine. Attaching the screenshot for reference.
Moving to RTBC

Rashmisoni made their first commit to this issue’s fork.