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
-----------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3126540-2.patch | 3.21 KB | gaurav_drupal |
Comments
Comment #2
gaurav_drupalComment #4
albert volkman commentedThank you @Gaurav_drupal! Merged.