Fix the issues reported by PHP_CodeSniffer

Created on 20 September 2024, 2 months ago

Problem/Motivation

FILE: modules\commerce_econt\commerce_econt.install
----------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
4 | ERROR | [x] Doc comment short description must end with a full stop
9 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
16 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
17 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
17 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
18 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
19 | ERROR | [ ] Empty installation hooks are not necessary
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: modules\commerce_econt\commerce_econt.libraries.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: modules\commerce_econt\commerce_econt.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 569 ERRORS AND 2 WARNINGS AFFECTING 336 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
5 | ERROR | [ ] Doc comment short description must end with a full stop
5 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
9 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
9 | ERROR | [x] Doc comment short description must end with a full stop
10 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
12 | ERROR | [x] Expected one space after the comma, 0 found
13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
15 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
23 | ERROR | [x] Space found before object operator
23 | ERROR | [x] Space found after object operator
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
28 | ERROR | [x] Space found before object operator
28 | ERROR | [x] Space found after object operator
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
41 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
45 | ERROR | [x] Space found before object operator
45 | ERROR | [x] Space found after object operator
46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
50 | ERROR | [x] Space found before object operator
50 | ERROR | [x] Space found after object operator
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
55 | ERROR | [x] Space found before object operator
55 | ERROR | [x] Space found after object operator
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
60 | ERROR | [x] Space found before object operator
60 | ERROR | [x] Space found after object operator
61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
65 | ERROR | [x] Space found before object operator
65 | ERROR | [x] Space found after object operator
66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
70 | ERROR | [x] Space found before object operator
70 | ERROR | [x] Space found after object operator
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
75 | ERROR | [x] Space found before object operator
75 | ERROR | [x] Space found after object operator
76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
80 | ERROR | [x] Space found before object operator
80 | ERROR | [x] Space found after object operator
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
85 | ERROR | [x] Space found before object operator
85 | ERROR | [x] Space found after object operator
86 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
87 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
90 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
90 | ERROR | [x] Space found before object operator
90 | ERROR | [x] Space found after object operator
91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
92 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
93 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
98 | ERROR | [x] Missing function doc comment
99 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
103 | ERROR | [x] Short array syntax must be used to define arrays
112 | ERROR | [x] Expected 1 space after IF keyword; 0 found
116 | ERROR | [x] Expected 1 space after IF keyword; 0 found
120 | ERROR | [x] Expected 1 space after IF keyword; 0 found
124 | ERROR | [x] Expected 1 space after IF keyword; 0 found
129 | ERROR | [x] Expected newline after closing brace
130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
130 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
131 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
135 | ERROR | [x] Expected 1 blank line after function; 2 found
138 | ERROR | [x] Missing function doc comment
138 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
139 | ERROR | [x] Expected one space after the comma, 0 found
140 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
142 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
146 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
146 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
147 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
148 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
149 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
149 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
151 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
151 | ERROR | [x] Space found before object operator
151 | ERROR | [x] Space found after object operator
152 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
153 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
153 | ERROR | [x] No space found before comment text; expected "// 1" but found "//1"
153 | ERROR | [x] Comments may not appear after statements
154 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
156 | ERROR | [x] Space found before object operator
156 | ERROR | [x] Space found after object operator
157 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
158 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
159 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
161 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
161 | ERROR | [x] Space found before object operator
161 | ERROR | [x] Space found after object operator
162 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
163 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
163 | ERROR | [x] No space found before comment text; expected "// 1" but found "//1"
163 | ERROR | [x] Comments may not appear after statements
164 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
166 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
166 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
167 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
168 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
169 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
169 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
171 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
171 | ERROR | [x] Space found before object operator
171 | ERROR | [x] Space found after object operator
172 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
173 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
174 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
176 | ERROR | [x] Space found before object operator
176 | ERROR | [x] Space found after object operator
177 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
178 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
179 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
181 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
181 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
182 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
184 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
184 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
185 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
186 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
187 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
188 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
188 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
189 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
189 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
190 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
191 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
192 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
192 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
194 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
194 | ERROR | [x] Space found before object operator
194 | ERROR | [x] Space found after object operator
195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
196 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
196 | ERROR | [x] No space found before comment text; expected "// 'Варна'" but found "//'Варна'"
196 | ERROR | [x] Comments may not appear after statements
197 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
199 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
199 | ERROR | [x] Space found before object operator
199 | ERROR | [x] Space found after object operator
200 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
201 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
202 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
204 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
204 | ERROR | [x] Space found before object operator
204 | ERROR | [x] Space found after object operator
204 | ERROR | [x] No space found before comment text; expected "// company name" but found "//company name"
204 | ERROR | [x] Inline comments must start with a capital letter
204 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
204 | ERROR | [x] Comments may not appear after statements
205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
206 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
207 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
209 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
209 | ERROR | [x] Space found before object operator
209 | ERROR | [x] Space found after object operator
209 | ERROR | [x] No space found before comment text; expected "// name_person" but found "//name_person"
209 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
209 | ERROR | [x] Comments may not appear after statements
210 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
211 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
212 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
214 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
214 | ERROR | [x] Space found before object operator
214 | ERROR | [x] Space found after object operator
214 | ERROR | [x] No space found before comment text; expected "// quarter" but found "//quarter"
214 | ERROR | [x] Inline comments must start with a capital letter
214 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
214 | ERROR | [x] Comments may not appear after statements
215 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
216 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
217 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
219 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
219 | ERROR | [x] Space found before object operator
219 | ERROR | [x] Space found after object operator
219 | ERROR | [x] No space found before comment text; expected "// street" but found "//street"
219 | ERROR | [x] Inline comments must start with a capital letter
219 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
219 | ERROR | [x] Comments may not appear after statements
220 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
221 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
222 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
224 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
224 | ERROR | [x] Space found before object operator
224 | ERROR | [x] Space found after object operator
224 | ERROR | [x] No space found before comment text; expected "// street_num" but found "//street_num"
224 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
224 | ERROR | [x] Comments may not appear after statements
225 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
226 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
227 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
229 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
229 | ERROR | [x] Space found before object operator
229 | ERROR | [x] Space found after object operator
229 | ERROR | [x] No space found before comment text; expected "// street_bl" but found "//street_bl"
229 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
229 | ERROR | [x] Comments may not appear after statements
230 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
231 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
232 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
234 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
234 | ERROR | [x] Space found before object operator
234 | ERROR | [x] Space found after object operator
234 | ERROR | [x] No space found before comment text; expected "// street_vh" but found "//street_vh"
234 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
234 | ERROR | [x] Comments may not appear after statements
235 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
236 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
237 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
239 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
239 | ERROR | [x] Space found before object operator
239 | ERROR | [x] Space found after object operator
239 | ERROR | [x] No space found before comment text; expected "// street_et" but found "//street_et"
239 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
239 | ERROR | [x] Comments may not appear after statements
240 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
241 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
242 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
244 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
244 | ERROR | [x] Space found before object operator
244 | ERROR | [x] Space found after object operator
244 | ERROR | [x] No space found before comment text; expected "// street_ap" but found "//street_ap"
244 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
244 | ERROR | [x] Comments may not appear after statements
245 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
246 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
247 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
249 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
249 | ERROR | [x] Space found before object operator
249 | ERROR | [x] Space found after object operator
249 | ERROR | [x] No space found before comment text; expected "// street_other" but found "//street_other"
249 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
249 | ERROR | [x] Comments may not appear after statements
250 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
251 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
252 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
254 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
254 | ERROR | [x] Space found before object operator
254 | ERROR | [x] Space found after object operator
254 | ERROR | [x] No space found before comment text; expected "// phone_num" but found "//phone_num"
254 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
254 | ERROR | [x] Comments may not appear after statements
255 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
256 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
257 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
259 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
259 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
261 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
262 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
262 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
264 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
264 | ERROR | [x] Space found before object operator
264 | ERROR | [x] Space found after object operator
265 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
266 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
269 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
269 | ERROR | [x] Space found before object operator
269 | ERROR | [x] Space found after object operator
270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
271 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
272 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
273 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
275 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
275 | ERROR | [x] Space found before object operator
275 | ERROR | [x] Space found after object operator
275 | ERROR | [x] No space found before comment text; expected "// company name" but found "//company name"
275 | ERROR | [x] Inline comments must start with a capital letter
275 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
275 | ERROR | [x] Comments may not appear after statements
276 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
277 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
279 | ERROR | [x] There should be no white space before a closing ")"
280 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
282 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
282 | ERROR | [x] Space found before object operator
282 | ERROR | [x] Space found after object operator
282 | ERROR | [x] No space found before comment text; expected "// name_person" but found "//name_person"
282 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
282 | ERROR | [x] Comments may not appear after statements
283 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
284 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
288 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
290 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
290 | ERROR | [x] Space found before object operator
290 | ERROR | [x] Space found after object operator
290 | ERROR | [x] No space found before comment text; expected "// receiver_email" but found "//receiver_email"
290 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
290 | ERROR | [x] Comments may not appear after statements
291 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
292 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
293 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
295 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
295 | ERROR | [x] Space found before object operator
295 | ERROR | [x] Space found after object operator
295 | ERROR | [x] No space found before comment text; expected "// quarter" but found "//quarter"
295 | ERROR | [x] Inline comments must start with a capital letter
295 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
295 | ERROR | [x] Comments may not appear after statements
296 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
297 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
298 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
300 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
300 | ERROR | [x] Space found before object operator
300 | ERROR | [x] Space found after object operator
300 | ERROR | [x] No space found before comment text; expected "// street" but found "//street"
300 | ERROR | [x] Inline comments must start with a capital letter
300 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
300 | ERROR | [x] Comments may not appear after statements
301 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
302 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
303 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
305 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
305 | ERROR | [x] Space found before object operator
305 | ERROR | [x] Space found after object operator
305 | ERROR | [x] No space found before comment text; expected "// street_num" but found "//street_num"
305 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
305 | ERROR | [x] Comments may not appear after statements
306 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
307 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
308 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
310 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
310 | ERROR | [x] Space found before object operator
310 | ERROR | [x] Space found after object operator
310 | ERROR | [x] No space found before comment text; expected "// street_bl" but found "//street_bl"
310 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
310 | ERROR | [x] Comments may not appear after statements
311 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
312 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
313 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
315 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
315 | ERROR | [x] Space found before object operator
315 | ERROR | [x] Space found after object operator
315 | ERROR | [x] No space found before comment text; expected "// street_vh" but found "//street_vh"
315 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
315 | ERROR | [x] Comments may not appear after statements
316 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
317 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
318 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
320 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
320 | ERROR | [x] Space found before object operator
320 | ERROR | [x] Space found after object operator
320 | ERROR | [x] No space found before comment text; expected "// street_et" but found "//street_et"
320 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
320 | ERROR | [x] Comments may not appear after statements
321 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
322 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
323 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
325 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
325 | ERROR | [x] Space found before object operator
325 | ERROR | [x] Space found after object operator
325 | ERROR | [x] No space found before comment text; expected "// street_ap" but found "//street_ap"
325 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
325 | ERROR | [x] Comments may not appear after statements
326 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
327 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
328 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
330 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
330 | ERROR | [x] Space found before object operator
330 | ERROR | [x] Space found after object operator
330 | ERROR | [x] No space found before comment text; expected "// street_other" but found "//street_other"
330 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
330 | ERROR | [x] Comments may not appear after statements
331 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
332 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
333 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
335 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
335 | ERROR | [x] Space found before object operator
335 | ERROR | [x] Space found after object operator
335 | ERROR | [x] No space found before comment text; expected "// phone_num" but found "//phone_num"
335 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
335 | ERROR | [x] Comments may not appear after statements
336 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
337 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
338 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
340 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
340 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
341 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
342 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
344 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
344 | ERROR | [x] Space found before object operator
344 | ERROR | [x] Space found after object operator
345 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
346 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
347 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
349 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
349 | ERROR | [x] Space found before object operator
349 | ERROR | [x] Space found after object operator
350 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
351 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
352 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
354 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
354 | ERROR | [x] Space found before object operator
354 | ERROR | [x] Space found after object operator
355 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
356 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
357 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
359 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
359 | ERROR | [x] Space found before object operator
359 | ERROR | [x] Space found after object operator
360 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
361 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
362 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
364 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
364 | ERROR | [x] Space found before object operator
364 | ERROR | [x] Space found after object operator
365 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
366 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
367 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
369 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
369 | ERROR | [x] Space found before object operator
369 | ERROR | [x] Space found after object operator
370 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
371 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
372 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
374 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
374 | ERROR | [x] Blank comments are not allowed
375 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
375 | ERROR | [x] Space found before object operator
375 | ERROR | [x] Space found after object operator
376 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
377 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
378 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
380 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
380 | ERROR | [x] Space found before object operator
380 | ERROR | [x] Space found after object operator
381 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
382 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
383 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
385 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
385 | ERROR | [x] Space found before object operator
385 | ERROR | [x] Space found after object operator
386 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
387 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
388 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
390 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
390 | ERROR | [x] Space found before object operator
390 | ERROR | [x] Space found after object operator
391 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
392 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
393 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
394 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
394 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
396 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
396 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
397 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
398 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
399 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 8
399 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
401 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
401 | ERROR | [x] Space found before object operator
401 | ERROR | [x] Space found after object operator
402 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
403 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
403 | ERROR | [x] No space found before comment text; expected "// 'SENDER'" but found "//'SENDER'"
403 | ERROR | [x] Comments may not appear after statements
404 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
406 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
406 | ERROR | [x] Space found before object operator
406 | ERROR | [x] Space found after object operator
407 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
408 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
408 | ERROR | [x] No space found before comment text; expected "// CASH, CREDIT" but found "//CASH, CREDIT"
408 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
408 | ERROR | [x] Comments may not appear after statements
409 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
412 | ERROR | [x] Expected 1 space after IF keyword; 0 found
413 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
413 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
414 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
415 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
417 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
418 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
419 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
419 | WARNING | [ ] Line exceeds 80 characters; contains 99 characters
419 | ERROR | [x] No space found before comment text; expected "// наложен платеж стойност" but found "//наложен платеж стойност"
419 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
419 | ERROR | [x] Comments may not appear after statements
420 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
421 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
421 | ERROR | [x] No space found before comment text; expected "// attribute" but found "//attribute"
421 | ERROR | [x] Inline comments must start with a capital letter
421 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
422 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
423 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
424 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
425 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
426 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
426 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
429 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
433 | ERROR | [x] Missing function doc comment
435 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
440 | ERROR | [x] Short array syntax must be used to define arrays
449 | ERROR | [x] Expected 1 space after IF keyword; 0 found
453 | ERROR | [x] Expected 1 space after IF keyword; 0 found
457 | ERROR | [x] Expected 1 space after IF keyword; 0 found
461 | ERROR | [x] Expected 1 space after cast statement; 0 found
462 | ERROR | [x] Expected newline after closing brace
463 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
463 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
464 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
476 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
476 | ERROR | [x] No space found before comment text; expected "// $validator['attachments']['library'][] = 'commerce_econt/cv.jquery.cesaddress';" but found "//$validator['attachments']['library'][] = 'commerce_econt/cv.jquery.cesaddress';"
481 | ERROR | [x] Doc comment short description must end with a full stop
484 | ERROR | [x] Opening brace should be on the same line as the declaration
486 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
488 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
492 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
505 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
507 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
512 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
516 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
520 | ERROR | [x] Short array syntax must be used to define arrays
529 | ERROR | [x] Expected 1 space after IF keyword; 0 found
533 | ERROR | [x] Expected 1 space after IF keyword; 0 found
537 | ERROR | [x] Expected 1 space after IF keyword; 0 found
542 | ERROR | [x] Expected newline after closing brace
543 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
577 | ERROR | [x] Missing function doc comment
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 567 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: modules\commerce_econt\commerce_econt.routing.yml
-------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------

FILE: modules\commerce_econt\config\install\commerce_econt.settings.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: modules\commerce_econt\README.md
------------------------------------------------------------------------
FOUND 1 ERROR AND 5 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------
4 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
8 | WARNING | [ ] Line exceeds 80 characters; contains 121 characters
13 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
14 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
15 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
16 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------

FILE: modules\commerce_econt\src\Controller\CommerceEcontController.php
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 39 ERRORS AND 3 WARNINGS AFFECTING 37 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------
1 | WARNING | [ ] File has mixed line endings; this may cause incorrect results
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\DependencyInjection\ContainerInjectionInterface.
5 | ERROR | [x] Each PHP statement must be on a line by itself
13 | ERROR | [x] Additional blank lines found at end of doc comment
56 | ERROR | [x] There must be no blank lines after the function comment
62 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 30
80 | ERROR | [x] Missing function doc comment
81 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
83 | ERROR | [x] Expected 1 space after IF keyword; 0 found
84 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
91 | ERROR | [x] Short array syntax must be used to define arrays
105 | ERROR | [x] Expected 1 space after IF keyword; 0 found
117 | ERROR | [x] Expected 1 space after IF keyword; 0 found
119 | ERROR | [x] Expected newline after closing brace
127 | ERROR | [x] Missing function doc comment
134 | ERROR | [x] Expected 1 space after IF keyword; 0 found
136 | ERROR | [x] Expected newline after closing brace
140 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
141 | ERROR | [x] Expected 1 space after IF keyword; 0 found
146 | ERROR | [x] Expected 1 space after cast statement; 0 found
147 | ERROR | [x] There should be no white space after an opening "("
147 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
147 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
153 | ERROR | [x] Expected 1 space after IF keyword; 0 found
154 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
156 | ERROR | [x] Expected newline after closing brace
165 | ERROR | [x] Missing function doc comment
167 | ERROR | [x] Concat operator must be surrounded by a single space
176 | ERROR | [x] Expected 1 space after IF keyword; 0 found
178 | ERROR | [x] Expected 1 space after IF keyword; 0 found
187 | ERROR | [x] Missing function doc comment
197 | ERROR | [x] Expected 1 space after IF keyword; 0 found
199 | ERROR | [x] Expected 1 space after IF keyword; 0 found
207 | ERROR | [x] Missing function doc comment
209 | ERROR | [x] Expected 1 space after IF keyword; 0 found
212 | ERROR | [x] Expected newline after closing brace
225 | ERROR | [x] Expected 1 space after IF keyword; 0 found
227 | ERROR | [x] Expected newline after closing brace
231 | ERROR | [x] Expected newline after closing brace
238 | ERROR | [x] Expected 1 newline at end of file; 0 found
238 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------------------------------

PHPCBF CAN FIX THE 39 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: modules\commerce_econt\src\EcontJsonAPIService.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Logger\LoggerChannelFactoryInterface.
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: modules\commerce_econt\src\Plugin\Commerce\ShippingMethod\Econt.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------
55 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
184 | WARNING | [x] A comma should follow the last multiline array item. Found: 3
201 | WARNING | [x] A comma should follow the last multiline array item. Found: 3
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: modules\commerce_econt\src\Plugin\Commerce\ShippingMethod\ShippingMethodEcont.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 26 ERRORS AND 1 WARNING AFFECTING 27 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\commerce_shipping\Entity\ShipmentInterface.
15 | ERROR | [x] Doc comment short description must end with a full stop
20 | ERROR | [x] Expected 1 blank line before function; 2 found
25 | ERROR | [x] The first index in a multi-value array must be on a new line
31 | WARNING | [x] A comma should follow the last multiline array item. Found: )
36 | ERROR | [x] Doc comment short description must end with a full stop
41 | ERROR | [x] Expected 1 space before opening brace; found 0
42 | ERROR | [x] Whitespace found at end of line
50 | ERROR | [x] Short array syntax must be used to define arrays
55 | ERROR | [x] Expected 1 space after IF keyword; 0 found
58 | ERROR | [x] Expected newline after closing brace
62 | ERROR | [x] Short array syntax must be used to define arrays
66 | ERROR | [x] Expected 1 space after IF keyword; 0 found
70 | ERROR | [x] The first index in a multi-value array must be on a new line
71 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
72 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
73 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
74 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
75 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
76 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
77 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
78 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
79 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
80 | ERROR | [x] Array indentation error, expected 6 spaces but found 12
81 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 11
82 | ERROR | [x] Expected 1 blank line after function; 0 found
83 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 27 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: modules\commerce_econt\src\Plugin\Commerce\ShippingMethod\ShippingMethodEcontInterface.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\commerce_shipping\Entity\ShipmentInterface.
6 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
10 | ERROR | [x] Expected 1 space before opening brace; found 0
26 | ERROR | [x] Expected 1 blank line after function; 0 found
27 | ERROR | [x] The closing brace for the interface must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run phpcs command to get the drupal coding standard issues.

Proposed resolution

Many of the issues can be fixed by running the phpcbf command. For the remaining ones, we will need to manually address and then commit these changes before pushing them.

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024