Problem/Motivation

FILE: /home/thallesvf/Desktop/lando/d8-contrib/modules/ctools/modules/ctools_views/src/Plugin/Display/Block.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 21 ERRORS AND 6 WARNINGS AFFECTING 24 LINES
-------------------------------------------------------------------------------------------------------------------------
  16 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  87 | WARNING | [x] A comma should follow the last multiline array item. Found: )
  91 | ERROR   | [x] Short array syntax must be used to define arrays
 133 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
     |         |     parentheses
 153 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 159 | WARNING | [x] A comma should follow the last multiline array item. Found: 'view'
 178 | ERROR   | [x] Short array syntax must be used to define arrays
 186 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 217 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 7
 219 | ERROR   | [x] Closing brace indented incorrectly; expected 7 spaces, found 8
 279 | ERROR   | [x] Short array syntax must be used to define arrays
 292 | ERROR   | [x] Short array syntax must be used to define arrays
 296 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 314 | ERROR   | [x] Short array syntax must be used to define arrays
 315 | ERROR   | [x] Short array syntax must be used to define arrays
 349 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into
     |         |     its own line
 354 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into
     |         |     its own line
 370 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
     |         |     parentheses
 446 | ERROR   | [x] Missing function doc comment
 459 | WARNING | [ ] Unused variable $filter_name.
 471 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 485 | ERROR   | [ ] Missing parameter comment
 485 | ERROR   | [ ] Missing parameter type
 486 | ERROR   | [ ] Missing parameter comment
 486 | ERROR   | [ ] Missing parameter type
 487 | ERROR   | [x] Separate the @param and @return sections by a blank line.
 487 | ERROR   | [ ] Description for the @return value is missing
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

Comments

thalles created an issue. See original summary.

thalles’s picture

Follow a patch!

thalles’s picture

Status: Needs work » Needs review
joelpittet’s picture

Status: Needs review » Fixed

Thank you again @thalles, I've committed this to dev.

  • joelpittet committed eed933f on 8.x-3.x authored by thalles
    Issue #3100947 by thalles: Standards on Plugin/Display/Block.php
    

Status: Fixed » Closed (fixed)

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