Running phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
shows the following warnings/errors, which should be fixed.
FILE: ./advanced_settings_options.info.yml
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | WARNING | [ ] "Description" property is missing in the info.yml
| | file
4 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ./advanced_settings_options.install
----------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but
| | found "\r\n"
3 | ERROR | [ ] Missing short description in doc comment
15 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ./advanced_settings_options.libraries.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ./advanced_settings_options.module
----------------------------------------------------------------------
FOUND 52 ERRORS AND 8 WARNINGS AFFECTING 35 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
3 | ERROR | [ ] Missing short description in doc comment
5 | ERROR | [x] There must be exactly one blank line after the
| | file comment
9 | WARNING | [ ] Doc comment indicates hook_form_alter() but
| | function signature is
| | "advanced_settings_options_form_entity_form_display_edit_form_alter"
| | instead of
| | "advanced_settings_options_form_alter". Did you
| | mean hook_form_FORM_ID_alter()?
15 | ERROR | [x] Whitespace found at end of line
18 | ERROR | [x] Whitespace found at end of line
21 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
21 | ERROR | [x] Line indented incorrectly; expected at least 2
| | spaces, found 1
22 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: false
22 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected
| | "FALSE" but found "false"
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
26 | ERROR | [x] Line indented incorrectly; expected at least 2
| | spaces, found 1
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
27 | ERROR | [x] Line indented incorrectly; expected at least 2
| | spaces, found 1
27 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected
| | "FALSE" but found "false"
27 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: )
29 | ERROR | [x] Whitespace found at end of line
45 | WARNING | [ ] Doc comment indicates hook_form_alter() but
| | function signature is
| | "advanced_settings_options_form_node_form_alter"
| | instead of
| | "advanced_settings_options_form_alter". Did you
| | mean hook_form_FORM_ID_alter()?
51 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected
| | "FALSE" but found "false"
54 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
54 | ERROR | [x] Whitespace found at end of line
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
57 | ERROR | [x] Line indented incorrectly; expected at least 2
| | spaces, found 1
57 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: 200
59 | ERROR | [x] Whitespace found at end of line
63 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
63 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 3
64 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
64 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 3
65 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
65 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 3
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 1
66 | ERROR | [x] Closing brace indented incorrectly; expected 4
| | spaces, found 1
68 | ERROR | [x] Whitespace found at end of line
72 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: $group_key
75 | ERROR | [x] Whitespace found at end of line
78 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
78 | ERROR | [x] Line indented incorrectly; expected at least 2
| | spaces, found 1
78 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: true
78 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected
| | "TRUE" but found "true"
81 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 1
82 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
82 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 3
83 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 1
86 | ERROR | [x] Whitespace found at end of line
88 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: 'container'
91 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 1
92 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
92 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 3
93 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
93 | ERROR | [x] Whitespace found at end of line
94 | ERROR | [x] Spaces must be used to indent lines; tabs are not
| | allowed
94 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 1
94 | ERROR | [x] Whitespace found at end of line
97 | ERROR | [x] Whitespace found at end of line
99 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 57 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ./css/default.css
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but
| | found "\r\n"
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 133ms; Memory: 6MB