Drupal Coding Standard issues

Created on 31 March 2020, over 4 years ago
Updated 13 June 2023, about 1 year ago

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Annotation/StateChangeHandler.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
36 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Service/MenuHelper.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 220 ERRORS AND 1 WARNING AFFECTING 174 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
14 | ERROR | [x] Opening brace should be on the same line as the declaration
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [ ] Parameter $entity is not described in comment
16 | ERROR | [ ] Parameter $parentEntry is not described in comment
16 | ERROR | [ ] Parameter $menu is not described in comment
19 | ERROR | [ ] Missing parameter comment
19 | ERROR | [ ] Doc comment for parameter $nid does not match actual variable name $menu
20 | ERROR | [ ] Missing parameter comment
21 | ERROR | [ ] Missing parameter comment
21 | ERROR | [ ] Doc comment for parameter $parentId does not match actual variable name $menu
22 | ERROR | [x] Separate the @param and @return sections by a blank line.
22 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
22 | ERROR | [ ] Description for the @return value is missing
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Opening brace should be on the same line as the declaration
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
26 | ERROR | [x] Short array syntax must be used to define arrays
27 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
28 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
28 | ERROR | [x] Short array syntax must be used to define arrays
29 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
30 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
31 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
32 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
32 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
35 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
36 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
37 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
38 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
39 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
40 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
41 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
42 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
42 | ERROR | [x] Expected newline after closing brace
43 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
44 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
45 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
46 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] Expected newline after closing brace
48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
49 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
54 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
57 | ERROR | [x] Missing function doc comment
58 | ERROR | [x] Opening brace should be on the same line as the declaration
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
59 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
63 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16
64 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
64 | ERROR | [x] Inline comments must start with a capital letter
65 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
65 | ERROR | [ ] Comment indentation error, expected only 1 spaces
66 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
66 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
67 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
68 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
68 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
70 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
71 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
72 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
81 | ERROR | [ ] Missing parameter comment
82 | ERROR | [ ] Missing parameter comment
83 | ERROR | [x] Separate the @param and @return sections by a blank line.
83 | ERROR | [ ] Description for the @return value is missing
83 | ERROR | [x] Data types in @return tags need to be fully namespaced
85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
86 | ERROR | [x] Opening brace should be on the same line as the declaration
87 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
87 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
89 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
90 | ERROR | [x] Object operator not indented correctly; expected 14 spaces but found 16
91 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
92 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
93 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
94 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
95 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
95 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
97 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
98 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
99 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
102 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
107 | ERROR | [ ] Missing parameter comment
107 | ERROR | [x] Data types in @param tags need to be fully namespaced
108 | ERROR | [ ] Missing parameter comment
109 | ERROR | [ ] Missing parameter comment
110 | ERROR | [x] Separate the @param and @return sections by a blank line.
110 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
110 | ERROR | [ ] Description for the @return value is missing
112 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
112 | ERROR | [ ] Type hint "MenuLinkContent" missing for $menuLink
113 | ERROR | [x] Opening brace should be on the same line as the declaration
114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
115 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
116 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
117 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
118 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
118 | ERROR | [x] Expected newline after closing brace
119 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
120 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
121 | ERROR | [x] Expected newline after closing brace
122 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
125 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
127 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
132 | ERROR | [ ] Missing parameter comment
132 | ERROR | [x] Data types in @param tags need to be fully namespaced
133 | ERROR | [ ] Missing parameter comment
134 | ERROR | [ ] Missing parameter comment
135 | ERROR | [x] Separate the @param and @return sections by a blank line.
135 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
135 | ERROR | [ ] Description for the @return value is missing
137 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
137 | ERROR | [ ] Type hint "MenuLinkContent" missing for $current
138 | ERROR | [x] Opening brace should be on the same line as the declaration
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
140 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
141 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
143 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
145 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
151 | ERROR | [ ] Missing parameter comment
152 | ERROR | [ ] Missing parameter comment
152 | ERROR | [x] Data types in @param tags need to be fully namespaced
153 | ERROR | [ ] Missing parameter comment
154 | ERROR | [x] Separate the @param and @return sections by a blank line.
154 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
154 | ERROR | [ ] Description for the @return value is missing
156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
156 | ERROR | [ ] Type hint "MenuLinkContent" missing for $skip
156 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
157 | ERROR | [x] Opening brace should be on the same line as the declaration
158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
159 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
161 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
162 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
163 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
163 | ERROR | [x] Expected newline after closing brace
164 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
165 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
166 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
167 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
169 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
170 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
172 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
173 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
175 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
175 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
176 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
177 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
178 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
179 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
180 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
181 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
182 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
184 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
184 | ERROR | [x] Missing function doc comment
185 | ERROR | [x] Opening brace should be on the same line as the declaration
186 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
187 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
188 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
189 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
190 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
191 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
192 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
193 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
198 | WARNING | [ ] Line exceeds 80 characters; contains 99 characters
200 | ERROR | [x] Parameter comment must be on the next line
201 | ERROR | [x] Expected "int" but found "integer" for parameter type
201 | ERROR | [x] Parameter comment must be on the next line
202 | ERROR | [x] Separate the @param and @return sections by a blank line.
202 | ERROR | [ ] Description for the @return value is missing
204 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
205 | ERROR | [x] Opening brace should be on the same line as the declaration
206 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
207 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
208 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
209 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
210 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
211 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
212 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
212 | ERROR | [x] Short array syntax must be used to define arrays
215 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
216 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
217 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
218 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
220 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
223 | ERROR | [ ] Missing parameter comment
224 | ERROR | [x] Separate the @param and @return sections by a blank line.
224 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
224 | ERROR | [ ] Description for the @return value is missing
226 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
227 | ERROR | [x] Opening brace should be on the same line as the declaration
228 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
229 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
230 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
230 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 184 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Plugin/rest/resource/Unpublish.php
------------------------------------------------------------------------------------------------------------
FOUND 47 ERRORS AND 2 WARNINGS AFFECTING 43 LINES
------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
25 | ERROR | [x] There must be exactly one newline after the class comment
28 | ERROR | [x] Opening brace should be on the same line as the declaration
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Doc comment short description must end with a full stop
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
35 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [ ] Parameter $state_change is not described in comment
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
69 | ERROR | [x] Opening brace should be on the same line as the declaration
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
82 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
83 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
84 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
85 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
86 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
86 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
87 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
88 | ERROR | [x] You must use "/**" style comments for a function comment
89 | ERROR | [x] Opening brace should be on the same line as the declaration
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
94 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
95 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
96 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
100 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
104 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
105 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
106 | ERROR | [x] Expected newline after closing brace
107 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 47 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Plugin/rest/resource/ResourceBase.php
---------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------
8 | ERROR | [ ] Doc comment is empty
20 | ERROR | [x] Separate the @param and @return sections by a blank line.
20 | ERROR | [x] Data types in @return tags need to be fully namespaced
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Plugin/rest/resource/Move.php
-------------------------------------------------------------------------------------------------------
FOUND 73 ERRORS AND 1 WARNING AFFECTING 60 LINES
-------------------------------------------------------------------------------------------------------
22 | ERROR | [x] There must be exactly one newline after the class comment
25 | ERROR | [x] Opening brace should be on the same line as the declaration
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
27 | ERROR | [x] Doc comment short description must end with a full stop
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Doc comment short description must end with a full stop
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [ ] Parameter $state_change is not described in comment
40 | ERROR | [ ] Parameter $menu_helper is not described in comment
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
75 | ERROR | [x] Opening brace should be on the same line as the declaration
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
86 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
89 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
90 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
91 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
92 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
92 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
93 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
94 | ERROR | [x] You must use "/**" style comments for a function comment
95 | ERROR | [x] Opening brace should be on the same line as the declaration
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
102 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
103 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
108 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
109 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
110 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
111 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
112 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
112 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
113 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
114 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
114 | ERROR | [x] Expected newline after closing brace
115 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
116 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
117 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
117 | ERROR | [x] Expected newline after closing brace
118 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
119 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
121 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
122 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
122 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
123 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
124 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
125 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
127 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
128 | ERROR | [x] Expected newline after closing brace
129 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
131 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
132 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
132 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 71 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Plugin/rest/resource/Transitions.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
40 | ERROR | [ ] Parameter $state_change is not described in comment
84 | ERROR | [ ] Missing short description in doc comment
87 | ERROR | [ ] Description for the @return value must be on the next line
99 | ERROR | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
107 | ERROR | [ ] Missing short description in doc comment
110 | ERROR | [ ] Description for the @return value must be on the next line
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Plugin/rest/resource/Copy.php
-------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------
83 | ERROR | Doc comment is empty
86 | ERROR | Protected method name "Copy::_copyChildren" is not in lowerCamel format
94 | ERROR | Doc comment is empty
97 | ERROR | Protected method name "Copy::_copyTree" is not in lowerCamel format
-------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/src/Plugin/rest/resource/Publish.php
----------------------------------------------------------------------------------------------------------
FOUND 48 ERRORS AND 2 WARNINGS AFFECTING 44 LINES
----------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
24 | ERROR | [x] There must be exactly one newline after the class comment
27 | ERROR | [x] Opening brace should be on the same line as the declaration
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Doc comment short description must end with a full stop
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
35 | ERROR | [ ] Parameter $state_change is not described in comment
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
68 | ERROR | [x] Opening brace should be on the same line as the declaration
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
81 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
82 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
83 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
84 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
85 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
85 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
86 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 5
87 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
87 | ERROR | [x] You must use "/**" style comments for a function comment
88 | ERROR | [x] Opening brace should be on the same line as the declaration
89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
93 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
94 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
94 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
95 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
99 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
103 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
104 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
105 | ERROR | [x] Expected newline after closing brace
106 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 48 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/frontendpublishing.info.yml
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/README.txt
--------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------
1 | WARNING | [ ] File has mixed line endings; this may cause incorrect results
1 | WARNING | [ ] File encoding is invalid, expected UTF-8
1 | ERROR | [ ] File contains UTF-16 (LE) byte order mark, which may corrupt your application
13 | WARNING | [ ] Line exceeds 80 characters; contains 146 characters
14 | WARNING | [ ] Line exceeds 80 characters; contains 156 characters
17 | WARNING | [ ] Line exceeds 80 characters; contains 150 characters
22 | WARNING | [ ] Line exceeds 80 characters; contains 132 characters
28 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters
34 | WARNING | [ ] Line exceeds 80 characters; contains 162 characters
35 | WARNING | [ ] Line exceeds 80 characters; contains 144 characters
49 | WARNING | [ ] Line exceeds 80 characters; contains 114 characters
50 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/frontendpublishing/frontendpublishing.module
----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
9 | ERROR | Doc comment is empty
19 | ERROR | Doc comment is empty
30 | ERROR | Doc comment is empty
37 | WARNING | Line exceeds 80 characters; contains 94 characters
40 | WARNING | Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
----------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India prabha1997

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024