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

Comments

Rakhi Soni created an issue. See original summary.

rakhi soni’s picture

Assigned: rakhi soni » Unassigned
Status: Active » Needs review
StatusFileSize
new4.47 KB

I have created a patch to fix this issue,, please review.

devkinetic’s picture

Thank you for your contribution.

  • devkinetic authored 522596d on 1.0.x
    Issue #3285546 by Rakhi Soni, devkinetic: phpcs standard--drupal fixes
    
devkinetic’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.