phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml warmer_view_mode/
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\warmer_view_mode\src\Plugin\warmer\ViewModeWarmer.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 5 WARNINGS AFFECTING 17 LINES
-------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
51 | ERROR | [ ] Missing member variable doc comment
139 | WARNING | [x] A comma should follow the last multiline array item. Found: $entity
143 | ERROR | [x] Expected 1 space before "|"; 0 found
143 | ERROR | [x] Expected 1 space after "|"; 0 found
188 | ERROR | [x] Expected newline after closing brace
238 | ERROR | [x] Concat operator must be surrounded by a single space
251 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
258 | WARNING | [x] A comma should follow the last multiline array item. Found: )
276 | ERROR | [ ] Doc comment short description must end with a full stop
276 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
280 | ERROR | [ ] Description for the @return value is missing
292 | ERROR | [x] Expected 1 blank line after function; 3 found
295 | ERROR | [ ] More than 2 empty lines are not allowed
296 | ERROR | [x] The closing brace for the class must have an empty line before it
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Phpcs_standard_drupal_issue_fixes-3285546-1.patch | 4.47 KB | rakhi soni |
Comments
Comment #2
rakhi soni commentedI have created a patch to fix this issue,, please review.
Comment #3
devkinetic commentedThank you for your contribution.
Comment #5
devkinetic commented