Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
9 | ERROR | It's only necessary to declare files[] if they declare
| | a class or interface.
10 | ERROR | It's only necessary to declare files[] if they declare
| | a class or interface.
----------------------------------------------------------------------
----------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one
| | blank line
14 | WARNING | [ ] Line exceeds 80 characters; contains 88
| | characters
32 | ERROR | [x] Array closing indentation error, expected 6
| | spaces but found 8
111 | ERROR | [ ] Doc comment short description must be on a
| | single line, further text should be a separate
| | paragraph
116 | ERROR | [ ] If the line declaring an array spans longer than
| | 80 characters, each element should be broken
| | into its own line
118 | ERROR | [x] Expected 1 newline at end of file; 4 found
121 | ERROR | [ ] More than 2 empty lines are not allowed
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
----------------------------------------------------------------------
FOUND 7 ERRORS AND 6 WARNINGS AFFECTING 12 LINES
----------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one
| | blank line
5 | ERROR | [x] There must be exactly one blank line after the
| | file comment
12 | WARNING | [ ] Hook implementations should not duplicate
| | @return documentation
12 | ERROR | [ ] Return type "an array with elements:" must not
| | contain spaces
14 | WARNING | [ ] Line exceeds 80 characters; contains 82
| | characters
16 | WARNING | [ ] Line exceeds 80 characters; contains 91
| | characters
32 | ERROR | [ ] Missing parameter type
35 | ERROR | [ ] Return type missing for @return tag in function
| | comment
75 | WARNING | [ ] Line exceeds 80 characters; contains 92
| | characters
95 | WARNING | [ ] Line exceeds 80 characters; contains 103
| | characters
118 | WARNING | [ ] Line exceeds 80 characters; contains 101
| | characters
126 | ERROR | [ ] Missing parameter type
146 | ERROR | [x] Expected 1 space after "="; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#2 | fixed_recommendations-2896558-2.patch | 6.57 KB | renatog |
Comments
Comment #2
renatogPatch with fix it's in the attachment.
Regards.
Comment #4
renatogFixed.
Committed to dev branch.
Regards.