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
-------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | ctools-Standards_on_Plugin_Display_Block.php-3100947-2-D8.patch | 8.04 KB | thalles |
Comments
Comment #2
thallesFollow a patch!
Comment #3
thallesComment #4
joelpittetThank you again @thalles, I've committed this to dev.