Problem/Motivation
Fix the issues reported by PHPCS for Drupal and DrupalPractice standards in 3.0.0 branch.
This will make the project comply with Drupal coding standards and should make it easier to maintain going forward.
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig web/modules/contrib/access_by_ref/
Proposed resolution
Fix all the issues mentioned below:
FILE: /var/www/html/web/modules/contrib/access_by_ref/access_by_ref.links.menu.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: /var/www/html/web/modules/contrib/access_by_ref/access_by_ref.info.yml
----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/tests/src/Traits/AbrUserTrait.php
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/src/AbrconfigInterface.php
--------------------------------------------------------------------------------------------------------
FOUND 43 ERRORS AND 3 WARNINGS AFFECTING 43 LINES
--------------------------------------------------------------------------------------------------------
3 | ERROR | [ ] Namespaced classes, interfaces and traits should not begin with a file doc comment
4 | WARNING | [ ] Line exceeds 80 characters; contains 120 characters
4 | WARNING | [x] There must be no blank line following an inline comment
4 | WARNING | [ ] There must be no blank line following an inline comment
16 | ERROR | [x] Doc comment short description must end with a full stop
18 | ERROR | [ ] Description for the @return value is missing
23 | ERROR | [x] Doc comment short description must end with a full stop
25 | ERROR | [ ] Missing parameter comment
32 | ERROR | [x] Doc comment short description must end with a full stop
34 | ERROR | [ ] Description for the @return value is missing
39 | ERROR | [x] Doc comment short description must end with a full stop
41 | ERROR | [ ] Missing parameter comment
48 | ERROR | [x] Doc comment short description must end with a full stop
50 | ERROR | [ ] Description for the @return value is missing
51 | ERROR | [x] There must be no blank lines after the function comment
56 | ERROR | [x] Doc comment short description must end with a full stop
58 | ERROR | [ ] Missing parameter comment
65 | ERROR | [x] Doc comment short description must end with a full stop
67 | ERROR | [ ] Description for the @return value is missing
68 | ERROR | [x] There must be no blank lines after the function comment
73 | ERROR | [x] Doc comment short description must end with a full stop
75 | ERROR | [ ] Missing parameter comment
82 | ERROR | [x] Doc comment short description must end with a full stop
84 | ERROR | [ ] Missing parameter comment
86 | ERROR | [ ] Description for the @return value is missing
87 | ERROR | [x] There must be no blank lines after the function comment
92 | ERROR | [x] Doc comment short description must end with a full stop
94 | ERROR | [ ] Missing parameter comment
101 | ERROR | [x] Doc comment short description must end with a full stop
103 | ERROR | [ ] Description for the @return value is missing
104 | ERROR | [x] There must be no blank lines after the function comment
109 | ERROR | [x] Doc comment short description must end with a full stop
111 | ERROR | [ ] Missing parameter comment
118 | ERROR | [x] Doc comment short description must end with a full stop
120 | ERROR | [ ] Description for the @return value is missing
121 | ERROR | [x] There must be no blank lines after the function comment
126 | ERROR | [x] Doc comment short description must end with a full stop
128 | ERROR | [ ] Missing parameter comment
135 | ERROR | [x] Doc comment short description must end with a full stop
137 | ERROR | [ ] Description for the @return value is missing
138 | ERROR | [x] There must be no blank lines after the function comment
143 | ERROR | [x] Doc comment short description must end with a full stop
145 | ERROR | [ ] Missing parameter comment
149 | ERROR | [x] Expected 1 blank line after function; 2 found
152 | ERROR | [x] Expected 1 newline at end of file; 0 found
152 | ERROR | [x] The closing brace for the interface must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/src/Form/AbrconfigForm.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
326 | ERROR | [x] No space found before comment text; expected "// dpm($values);" but found "//dpm($values);"
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/src/Form/AbrconfigDeleteForm.php
--------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
--------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
5 | WARNING | [x] Unused use statement
11 | ERROR | [x] There must be exactly one newline after the class comment
19 | ERROR | [x] Short array syntax must be used to define arrays
41 | ERROR | [x] Short array syntax must be used to define arrays
47 | ERROR | [x] Expected 1 blank line after function; 0 found
48 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/src/Controller/AbrconfigListBuilder.php
---------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 6 WARNINGS AFFECTING 12 LINES
---------------------------------------------------------------------------------------------------------------
16 | ERROR | [x] Expected 1 blank line before function; 0 found
40 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
43 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
43 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
44 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
45 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
47 | WARNING | [x] There must be no blank line following an inline comment
47 | WARNING | [ ] There must be no blank line following an inline comment
67 | WARNING | [ ] Line exceeds 80 characters; contains 190 characters
68 | WARNING | [ ] Line exceeds 80 characters; contains 141 characters
72 | ERROR | [x] Short array syntax must be used to define arrays
74 | WARNING | [x] A comma should follow the last multiline array item. Found: $info
79 | WARNING | [ ] Only string literals should be passed to t() where possible
112 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/src/Entity/Abrconfig.php
-------------------------------------------------------------------------------------------------------------------
FOUND 30 ERRORS AFFECTING 24 LINES
-------------------------------------------------------------------------------------------------------------------
53 | ERROR | [x] There must be exactly one newline after the class comment
129 | ERROR | [x] Missing function doc comment
129 | ERROR | [x] Expected 1 blank line before function; 2 found
133 | ERROR | [x] Missing function doc comment
137 | ERROR | [x] Missing function doc comment
141 | ERROR | [x] Missing function doc comment
145 | ERROR | [x] Missing function doc comment
145 | ERROR | [x] Incorrect spacing between argument "$readable" and equals sign; expected 1 but found 0
145 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$readable"; expected 1
| | but found 0
145 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
147 | ERROR | [x] Expected 1 space after IF keyword; 0 found
147 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
150 | ERROR | [x] Case breaking statements must be followed by a single blank line
152 | ERROR | [x] Case breaking statements must be followed by a single blank line
154 | ERROR | [x] Case breaking statements must be followed by a single blank line
156 | ERROR | [x] Case breaking statements must be followed by a single blank line
161 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
167 | ERROR | [x] Missing function doc comment
171 | ERROR | [x] Missing function doc comment
175 | ERROR | [x] Missing function doc comment
179 | ERROR | [x] Missing function doc comment
179 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
183 | ERROR | [x] Missing function doc comment
187 | ERROR | [x] Missing function doc comment
191 | ERROR | [x] Missing function doc comment
195 | ERROR | [x] Missing function doc comment
199 | ERROR | [x] Missing function doc comment
203 | ERROR | [x] Missing function doc comment
207 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 30 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/access_by_ref.permissions.yml
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
9 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/access_by_ref.module
-------------------------------------------------------------------------------------------------------------------
FOUND 246 ERRORS AND 19 WARNINGS AFFECTING 134 LINES
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
6 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
11 | ERROR | [x] Missing function doc comment
11 | ERROR | [ ] Invalid function name, expected have_node_access but found haveNodeAccess
11 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found
| | "haveNodeAccess" but expected "access_by_ref_haveNodeAccess"
11 | ERROR | [x] Expected 1 space before opening brace; found 0
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Expected 1 space after IF keyword; 0 found
15 | ERROR | [x] Expected 1 space before "=="; 0 found
15 | ERROR | [x] Expected 1 space after "=="; 0 found
15 | ERROR | [x] There should be no white space before a closing ")"
15 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
16 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
19 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
26 | ERROR | [x] Doc comment short description must be on the first line
27 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
27 | ERROR | [ ] Doc comment short description must end with a full stop
27 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate
| | paragraph
29 | ERROR | [ ] Wrong function doc comment end; expected "*/", found "******************/"
29 | ERROR | [x] Additional blank lines found at end of doc comment
29 | ERROR | [x] There must be no blank lines after the function comment
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Expected 1 space after IF keyword; 0 found
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
44 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
45 | WARNING | [x] The variable name should be defined after the type
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
48 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | WARNING | [ ] Unused variable $node_field.
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
55 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
57 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
59 | ERROR | [x] Expected 1 space after SWITCH keyword; 0 found
59 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
61 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
61 | WARNING | [ ] There must be no blank line following an inline comment
61 | ERROR | [x] No space found before comment text; expected "// allow if user is in this field" but found
| | "//allow if user is in this field"
61 | ERROR | [x] Inline comments must start with a capital letter
61 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
61 | ERROR | [x] Comments may not appear after statements
63 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
65 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
65 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
65 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
66 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
66 | ERROR | [x] Expected 1 space after IF keyword; 0 found
66 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
67 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
68 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
68 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
68 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
69 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
70 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
70 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
70 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
71 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
72 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
73 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
74 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 16
76 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
76 | WARNING | [ ] There must be no blank line following an inline comment
76 | ERROR | [x] No space found before comment text; expected "// allow if user mail is in this field" but
| | found "//allow if user mail is in this field"
76 | ERROR | [x] Inline comments must start with a capital letter
76 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
76 | ERROR | [x] Comments may not appear after statements
78 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
80 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
80 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
80 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
81 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
81 | ERROR | [x] Expected 1 space after IF keyword; 0 found
81 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
82 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
83 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
83 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
83 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
84 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
84 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
84 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
85 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
85 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
85 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
86 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
87 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
88 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
89 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 16
91 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
91 | WARNING | [ ] There must be no blank line following an inline comment
91 | ERROR | [x] No space found before comment text; expected "// allow if user shares a value is in this
| | field" but found "//allow if user shares a value is in this field"
91 | ERROR | [x] Inline comments must start with a capital letter
91 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
91 | ERROR | [x] Comments may not appear after statements
93 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
94 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
95 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
95 | ERROR | [x] Expected 1 space after "="; 2 found
97 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
97 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
97 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
98 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
98 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
98 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
99 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
99 | ERROR | [x] Expected 1 space after IF keyword; 0 found
99 | ERROR | [x] There should be no white space before a closing ")"
99 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
100 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
101 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
101 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
101 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
102 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
102 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
102 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
103 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
103 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
103 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
104 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
105 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
106 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
107 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
108 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 16
110 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
110 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
110 | WARNING | [ ] There must be no blank line following an inline comment
110 | ERROR | [x] No space found before comment text; expected "// inherit the CRUD of the referenced, if more
| | liberal" but found "//inherit the CRUD of the referenced, if more liberal"
110 | ERROR | [x] Inline comments must start with a capital letter
110 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
110 | ERROR | [x] Comments may not appear after statements
112 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
112 | WARNING | [ ] Line exceeds 80 characters; contains 117 characters
112 | WARNING | [ ] There must be no blank line following an inline comment
112 | ERROR | [x] Inline comments must start with a capital letter
112 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
112 | ERROR | [x] Comments may not appear after statements
114 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
114 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
115 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
116 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
117 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
117 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
117 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
118 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
119 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
119 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
120 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 32
120 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
120 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
121 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 32
121 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
121 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
122 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 32
122 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
122 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
123 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 32
124 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
125 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
126 | ERROR | [x] Case breaking statement indented incorrectly; expected 22 spaces, found 24
128 | WARNING | [x] 'todo: paragraph support needs to be checked' should match the format '@todo Fix problem X
| | here.'
128 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
129 | WARNING | [x] 'todo: At this moment, extra is only used in user field' should match the format '@todo Fix
| | problem X here.'
129 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
130 | WARNING | [x] 'todo: I can't seem to figure out if this ever worked...' should match the format '@todo Fix
| | problem X here.'
130 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
131 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
132 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
132 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
132 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
132 | ERROR | [x] There should be no white space after an opening "{"
132 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
132 | ERROR | [x] Inline comments must start with a capital letter
132 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
132 | ERROR | [x] Comments may not appear after statements
133 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
134 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
134 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
134 | ERROR | [x] There should be no white space after an opening "("
134 | ERROR | [x] There should be no white space before a closing ")"
135 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
136 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
137 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
137 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
137 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
138 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 32
138 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
139 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 36
139 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
139 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
140 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 36
140 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
140 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
141 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 36
141 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
141 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
142 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 36
143 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 32
144 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
145 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
146 | ERROR | [x] Case breaking statement indented incorrectly; expected 22 spaces, found 24
147 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
148 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 16
150 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
150 | WARNING | [ ] There must be no blank line following an inline comment
152 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
152 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
154 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
155 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16
158 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
158 | ERROR | [x] Inline comments must start with a capital letter
158 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
159 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
161 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
161 | ERROR | [x] Use "elseif" in place of "else if"
161 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
162 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
163 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16
166 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
166 | ERROR | [x] Inline comments must start with a capital letter
166 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
167 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
168 | ERROR | [x] Use "elseif" in place of "else if"
168 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
169 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
170 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16
173 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
173 | ERROR | [x] Inline comments must start with a capital letter
173 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
178 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
179 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 8
183 | ERROR | [x] Missing function doc comment
183 | ERROR | [x] Expected 1 space before opening brace; found 0
185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
186 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 8
187 | ERROR | [x] Short array syntax must be used to define arrays
189 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
190 | ERROR | [x] Expected 1 newline at end of file; 3 found
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 248 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/access_by_ref/access_by_ref.links.action.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: /var/www/html/web/modules/contrib/access_by_ref/access_by_ref.install
----------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------
Remaining tasks
Fix issues (phpcbf can do some).
Test.
Review.
User interface changes
None.
API changes
None.
Data model changes
None.