Problem/Motivation
FILE: .../web/modules/contrib/diff_moderate/src/Plugin/views/field/DiffModerate.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
21 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
31 | WARNING | [ ] Unused variable $rev_key.
33 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
43 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...es/contrib/diff_moderate/src/Controller/NodeModerateRevisionController.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
40 | WARNING | Line exceeds 80 characters; contains 92 characters
--------------------------------------------------------------------------------
Time: 293ms; Memory: 10MB
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig diff_moderate/
Proposed resolution
Resolve all the issues for Drupal and DrupalPractice coding standards
Remaining tasks
Patch review.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | after patch.png | 166.99 KB | paraderojether |
| #5 | before patch.png | 218.21 KB | paraderojether |
| #4 | 3353940-After-Patch.png | 422.17 KB | rassoni |
| #4 | 3353940-Before-Patch.png | 1.39 MB | rassoni |
| coding_standard_fixes.patch | 2.21 KB | urvashi_vora |
Issue fork diff_moderate-3353940
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
Comment #4
rassoni commentedReview patch and tested locally. Mention all phpcs issues are resolved. RTBC +
Comment #5
paraderojether commentedHi Rassoni,
I also reviewed MR!1, applied against Moderate diff 1.0.x-dev with Drupal core version 10.1.7, and confirmed it fixes the issue reported by phpcs.
I added screenshots for reference.
Thank you.