phpcs reports the following coding standard issues.

FILE: adroll_d8/adroll.module
-----------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
-----------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
8 | ERROR | [x] Expected 1 space before opening brace; found 0
9 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
51 | WARNING | [x] A comma should follow the last multiline array item. Found: 'adroll'
59 | ERROR | [ ] Missing parameter type
61 | ERROR | [x] Separate the @param and @return sections by a blank line.
61 | ERROR | [x] Expected "bool" but found "boolean" for function return type
82 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: adroll_d8/src/Form/AdrollSettingsForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------
35 | ERROR | [x] Short array syntax must be used to define arrays
43 | ERROR | [x] Short array syntax must be used to define arrays
51 | ERROR | [x] Short array syntax must be used to define arrays
58 | ERROR | [x] Short array syntax must be used to define arrays
65 | ERROR | [x] Short array syntax must be used to define arrays
86 | ERROR | [x] Expected 1 blank line after function; 0 found
87 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

CommentFileSizeAuthor
#2 3126540-2.patch3.21 KBgaurav_drupal

Comments

Gaurav_drupal created an issue. See original summary.

gaurav_drupal’s picture

Assigned: gaurav_drupal » Unassigned
Status: Needs work » Needs review
StatusFileSize
new3.21 KB

albert volkman’s picture

Status: Needs review » Fixed

Thank you @Gaurav_drupal! Merged.

Status: Fixed » Closed (fixed)

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