Created on 26 March 2024, 3 months ago
Updated 11 April 2024, 3 months ago

FILE: /var/www/html/web/modules/contrib/phonepay_payment/phonepay_payment.module
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/PluginForm/PhonePeCheckoutForm.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 67 ERRORS AND 2 WARNINGS AFFECTING 52 LINES
-------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\commerce_order\Entity\Order.
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
15 | ERROR | [x] Missing class doc comment
16 | ERROR | [x] Opening brace should be on the same line as the declaration
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Missing function doc comment
19 | ERROR | [x] Opening brace should be on the same line as the declaration
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
41 | ERROR | [x] Expected 1 space after IF keyword; 0 found
42 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
43 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
43 | ERROR | [x] Expected newline after closing brace
44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [x] Expected 1 space after "="; 2 found
52 | ERROR | [x] Short array syntax must be used to define arrays
52 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
53 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
53 | ERROR | [x] Short array syntax must be used to define arrays
53 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
53 | ERROR | [x] Each PHP statement must be on a line by itself
55 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
55 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
58 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
59 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
60 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
74 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
80 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 69 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/Methods/StandardCheckout.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 281 ERRORS AND 18 WARNINGS AFFECTING 240 LINES
-------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
8 | ERROR | [x] Opening brace should be on the same line as the declaration
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
9 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
10 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
14 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
14 | ERROR | [x] Doc comment short description must end with a full stop
16 | ERROR | [ ] Missing parameter comment
16 | ERROR | [x] Expected 1 spaces after parameter type; 4 found
17 | ERROR | [ ] Missing parameter comment
18 | ERROR | [ ] Missing parameter comment
19 | ERROR | [ ] Missing parameter comment
20 | ERROR | [ ] Missing parameter comment
21 | ERROR | [x] Parameter comment must be on the next line
21 | ERROR | [x] Parameter comment must end with a full stop
23 | ERROR | [ ] Description for the @return value is missing
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
25 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
26 | ERROR | [x] Opening brace should be on the same line as the declaration
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
28 | ERROR | [x] Expected 1 space after IF keyword; 0 found
29 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
33 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
38 | ERROR | [x] Expected 1 space after IF keyword; 0 found
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
41 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
43 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
43 | ERROR | [x] Expected 1 space after IF keyword; 0 found
44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Expected 1 space after IF keyword; 0 found
47 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | WARNING | [x] A comma should follow the last multiline array item. Found: "PAY_PAGE"
61 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
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 2 spaces, found 4
69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
70 | WARNING | [ ] Line exceeds 80 characters; contains 100 characters
70 | ERROR | [x] Doc comment short description must end with a full stop
72 | ERROR | [ ] Description for the @return value is missing
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
76 | ERROR | [x] Expected 1 space after IF keyword; 0 found
77 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
84 | WARNING | [ ] Line exceeds 80 characters; contains 120 characters
84 | ERROR | [x] Doc comment short description must end with a full stop
86 | ERROR | [ ] Description for the @return value is missing
88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
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
90 | ERROR | [x] Expected 1 space after IF keyword; 0 found
91 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
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 2 spaces, found 4
97 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
98 | ERROR | [x] Doc comment short description must end with a full stop
100 | ERROR | [ ] Missing parameter comment
101 | ERROR | [ ] Missing parameter comment
103 | ERROR | [ ] Description for the @return value is missing
105 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
105 | WARNING | [ ] Possible useless method overriding detected
106 | ERROR | [x] Opening brace should be on the same line as the declaration
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
108 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
111 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
111 | ERROR | [x] Doc comment short description must end with a full stop
113 | ERROR | [ ] Missing parameter comment
114 | ERROR | [ ] Missing parameter comment
116 | ERROR | [ ] Description for the @return value is missing
118 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
119 | ERROR | [x] Opening brace should be on the same line as the declaration
120 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
120 | ERROR | [x] Expected 1 space after IF keyword; 0 found
121 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
121 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
123 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
124 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
126 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
127 | ERROR | [x] Doc comment short description must end with a full stop
129 | ERROR | [ ] Description for the @return value is missing
131 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
132 | ERROR | [x] Opening brace should be on the same line as the declaration
133 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
135 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
136 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
138 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
138 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
140 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
141 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
144 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
144 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
146 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
147 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
149 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
149 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
150 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
150 | ERROR | [x] Expected 1 space after IF keyword; 0 found
151 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
152 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
154 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
155 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
155 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
157 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
157 | ERROR | [x] Inline comments must start with a capital letter
157 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
161 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
163 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
164 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters
164 | ERROR | [x] Doc comment short description must end with a full stop
166 | ERROR | [ ] Description for the @return value is missing
168 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
169 | ERROR | [x] Opening brace should be on the same line as the declaration
170 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
170 | ERROR | [x] Expected 1 space after IF keyword; 0 found
171 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
172 | 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 2 spaces, found 4
177 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
178 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
178 | ERROR | [x] Doc comment short description must end with a full stop
180 | ERROR | [ ] Description for the @return value is missing
182 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
183 | ERROR | [x] Opening brace should be on the same line as the declaration
184 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
184 | ERROR | [x] Expected 1 space after IF keyword; 0 found
185 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
186 | 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 2 spaces, found 4
191 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
192 | WARNING | [ ] Line exceeds 80 characters; contains 115 characters
192 | ERROR | [x] Doc comment short description must end with a full stop
194 | ERROR | [ ] Description for the @return value is missing
196 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
197 | ERROR | [x] Opening brace should be on the same line as the declaration
198 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
198 | ERROR | [x] Expected 1 space after IF keyword; 0 found
199 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
200 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
202 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
203 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
206 | WARNING | [ ] Line exceeds 80 characters; contains 129 characters
206 | ERROR | [x] Doc comment short description must end with a full stop
208 | ERROR | [ ] Description for the @return value is missing
210 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
211 | ERROR | [x] Opening brace should be on the same line as the declaration
212 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
212 | ERROR | [x] Expected 1 space after IF keyword; 0 found
213 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
213 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
214 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
215 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
215 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
216 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
218 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
219 | WARNING | [ ] Line exceeds 80 characters; contains 115 characters
219 | ERROR | [x] Doc comment short description must end with a full stop
221 | ERROR | [ ] Description for the @return value is missing
223 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
224 | ERROR | [x] Opening brace should be on the same line as the declaration
225 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
225 | ERROR | [x] Expected 1 space after IF keyword; 0 found
226 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
227 | 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
232 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
233 | WARNING | [ ] Line exceeds 80 characters; contains 127 characters
233 | ERROR | [x] Doc comment short description must end with a full stop
235 | ERROR | [ ] Description for the @return value is missing
237 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
238 | ERROR | [x] Opening brace should be on the same line as the declaration
239 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
239 | ERROR | [x] Expected 1 space after IF keyword; 0 found
240 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
241 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
243 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
244 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
246 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
247 | WARNING | [ ] Line exceeds 80 characters; contains 132 characters
247 | ERROR | [x] Doc comment short description must end with a full stop
249 | ERROR | [ ] Description for the @return value is missing
251 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
252 | ERROR | [x] Opening brace should be on the same line as the declaration
253 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
253 | ERROR | [x] Expected 1 space after IF keyword; 0 found
254 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
255 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
257 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
258 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
261 | ERROR | [x] Doc comment short description must end with a full stop
263 | ERROR | [ ] Missing parameter comment
265 | ERROR | [ ] Description for the @return value is missing
267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
268 | ERROR | [x] Opening brace should be on the same line as the declaration
269 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
270 | ERROR | [x] Concat operator must be surrounded by a single space
270 | ERROR | [x] Concat operator must be surrounded by a single space
270 | ERROR | [x] Concat operator must be surrounded by a single space
270 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
271 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
274 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
275 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
277 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
278 | ERROR | [x] Doc comment short description must end with a full stop
280 | ERROR | [ ] Missing parameter comment
282 | ERROR | [ ] Description for the @return value is missing
284 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
285 | ERROR | [x] Opening brace should be on the same line as the declaration
286 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
287 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
288 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
290 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
291 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
291 | ERROR | [x] Doc comment short description must end with a full stop
293 | ERROR | [ ] Missing parameter comment
295 | ERROR | [ ] Description for the @return value is missing
297 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
298 | ERROR | [x] Opening brace should be on the same line as the declaration
299 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
299 | ERROR | [x] Expected 1 space after IF keyword; 0 found
300 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
300 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
301 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
302 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
302 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
303 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
305 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
306 | ERROR | [x] Doc comment short description must end with a full stop
308 | ERROR | [ ] Missing parameter comment
310 | ERROR | [ ] Description for the @return value is missing
312 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
313 | ERROR | [x] Opening brace should be on the same line as the declaration
314 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
315 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
316 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
318 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
319 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
319 | ERROR | [x] Doc comment short description must end with a full stop
321 | ERROR | [ ] Missing parameter comment
323 | ERROR | [ ] Description for the @return value is missing
325 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
326 | ERROR | [x] Opening brace should be on the same line as the declaration
327 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
328 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
329 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
331 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
332 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
332 | ERROR | [x] Doc comment short description must end with a full stop
334 | ERROR | [ ] Missing parameter comment
336 | ERROR | [ ] Description for the @return value is missing
338 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
339 | ERROR | [x] Opening brace should be on the same line as the declaration
340 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
341 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
342 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
343 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 248 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/Methods/RecurringCheckout.php
------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
8 | ERROR | [x] Opening brace should be on the same line as the declaration
10 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/Methods/CustomCheckout.php
---------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
8 | ERROR | [x] Opening brace should be on the same line as the declaration
10 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/PhonePeBaseClass.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 82 ERRORS AND 2 WARNINGS AFFECTING 66 LINES
-------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\phonepay_payment\PhonePe.
8 | ERROR | [x] Missing class doc comment
9 | ERROR | [x] Opening brace should be on the same line as the declaration
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
10 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
11 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
14 | ERROR | [x] Opening brace should be on the same line as the declaration
15 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
16 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] Doc comment short description must end with a full stop
22 | ERROR | [ ] Missing parameter comment
23 | ERROR | [ ] Missing parameter comment
24 | ERROR | [ ] Missing parameter comment
25 | ERROR | [ ] Missing parameter comment
27 | ERROR | [ ] Description for the @return value is missing
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Opening brace should be on the same line as the declaration
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Doc comment short description must end with a full stop
39 | ERROR | [ ] Missing parameter comment
39 | ERROR | [x] Expected 1 spaces after parameter type; 5 found
40 | ERROR | [ ] Missing parameter comment
40 | ERROR | [x] Expected 1 spaces after parameter type; 5 found
41 | ERROR | [ ] Missing parameter comment
42 | ERROR | [ ] Missing parameter comment
42 | ERROR | [x] Expected 1 spaces after parameter type; 6 found
44 | ERROR | [ ] Description for the @return value is missing
46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
46 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
47 | ERROR | [x] Opening brace should be on the same line as the declaration
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
49 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
51 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
53 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
53 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
54 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
55 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
55 | ERROR | [x] Expected newline after closing brace
55 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
56 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
58 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
67 | WARNING | [x] A comma should follow the last multiline array item. Found: $requestBody
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
71 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
75 | ERROR | [x] Doc comment short description must end with a full stop
77 | ERROR | [ ] Missing parameter comment
78 | ERROR | [ ] Missing parameter comment
80 | ERROR | [ ] Description for the @return value is missing
82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
83 | ERROR | [x] Opening brace should be on the same line as the declaration
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
85 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
88 | 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 6 spaces, found 12
91 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
92 | 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 "FALSE" but found "false"
95 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
95 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 69 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/Plugin/Commerce/PaymentGateway/PhonePeCheckout.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 67 ERRORS AND 12 WARNINGS AFFECTING 69 LINES
-------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
18 | WARNING | [x] Unused use statement
18 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Symfony\Component\DependencyInjection\ContainerInterface.
20 | WARNING | [x] Unused use statement
21 | WARNING | [x] Unused use statement
38 | ERROR | [x] There must be exactly one newline after the class comment
41 | ERROR | [x] Opening brace should be on the same line as the declaration
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Expected 1 blank line before function; 0 found
46 | ERROR | [x] Opening brace should be on the same line as the declaration
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
50 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
51 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
52 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
53 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
53 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
57 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
58 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
59 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
60 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
60 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
65 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
66 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
67 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
67 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
71 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
72 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
73 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
74 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
74 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
78 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
79 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
80 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
81 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
81 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
85 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
86 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
87 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
88 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
88 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
92 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
97 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
98 | ERROR | [x] Opening brace should be on the same line as the declaration
99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
101 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
102 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
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 6 spaces, found 12
106 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
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 2 spaces, found 4
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
114 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
115 | ERROR | [x] Opening brace should be on the same line as the declaration
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
116 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
117 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
117 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 79 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/PhonePe.php
---------------------------------------------------------------------------------------------------
FOUND 95 ERRORS AND 1 WARNING AFFECTING 80 LINES
---------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
6 | ERROR | [x] Opening brace should be on the same line as the declaration
7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
7 | ERROR | [ ] Missing member variable doc comment
8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
8 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
11 | ERROR | [x] Opening brace should be on the same line as the declaration
12 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | WARNING | [ ] Line exceeds 80 characters; contains 124 characters
16 | ERROR | [x] Doc comment short description must end with a full stop
18 | ERROR | [ ] Description for the @return value is missing
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Opening brace should be on the same line as the declaration
22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
22 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
23 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Doc comment short description must end with a full stop
32 | ERROR | [ ] Missing parameter comment
33 | ERROR | [ ] Missing parameter comment
34 | ERROR | [ ] Missing parameter comment
35 | ERROR | [ ] Missing parameter comment
36 | ERROR | [x] Parameter comment must be on the next line
36 | ERROR | [x] Parameter comment must end with a full stop
37 | ERROR | [x] Parameter comment must be on the next line
37 | ERROR | [x] Parameter comment must end with a full stop
38 | ERROR | [x] Parameter comment must be on the next line
38 | ERROR | [x] Parameter comment must end with a full stop
39 | ERROR | [ ] Parameter comment must start with a capital letter
39 | ERROR | [x] Parameter comment must be on the next line
39 | ERROR | [x] Parameter comment must end with a full stop
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
42 | ERROR | [x] Opening brace should be on the same line as the declaration
43 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
43 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
45 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
46 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
46 | ERROR | [x] Expected newline after closing brace
47 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
52 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
53 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
54 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
55 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
56 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
57 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
58 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
59 | ERROR | [x] Array indentation error, expected 18 spaces but found 16
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
68 | ERROR | [x] Doc comment short description must end with a full stop
70 | ERROR | [ ] Missing parameter comment
72 | ERROR | [ ] Description for the @return value is missing
74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
74 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
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
77 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
84 | ERROR | [x] Doc comment short description must end with a full stop
86 | ERROR | [ ] Description for the @return value is missing
88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
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
90 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
93 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
94 | ERROR | [x] Doc comment short description must end with a full stop
96 | ERROR | [ ] Description for the @return value is missing
98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
99 | ERROR | [x] Opening brace should be on the same line as the declaration
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
100 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
103 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
104 | ERROR | [x] Doc comment short description must end with a full stop
106 | ERROR | [ ] Description for the @return value is missing
108 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
109 | ERROR | [x] Opening brace should be on the same line as the declaration
110 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
110 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
111 | ERROR | [x] Expected 1 blank line after function; 0 found
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 82 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/phonepay_payment/src/PaymentStatusController.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 55 ERRORS AND 4 WARNINGS AFFECTING 47 LINES
-------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\Core\Controller\ControllerBase.
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
13 | ERROR | [x] Missing class doc comment
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 | [x] Missing function doc comment
17 | ERROR | [x] Opening brace should be on the same line as the declaration
18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
19 | ERROR | [x] Expected 1 space after IF keyword; 0 found
20 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
21 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
22 | ERROR | [x] Expected newline after closing brace
23 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
24 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Payment Pending or Failed! Please try
| | again or refresh this page.'
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Missing function doc comment
30 | ERROR | [x] Opening brace should be on the same line as the declaration
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
31 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
31 | ERROR | [x] Whitespace found at end of line
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
33 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
34 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
35 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
36 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
37 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
38 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
38 | ERROR | [x] Data types in @var tags need to be fully namespaced
39 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
40 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
41 | ERROR | [x] Whitespace found at end of line
42 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
44 | ERROR | [x] Array indentation error, expected 26 spaces but found 24
45 | ERROR | [x] Array indentation error, expected 26 spaces but found 24
46 | ERROR | [x] Array indentation error, expected 26 spaces but found 24
47 | ERROR | [x] Array indentation error, expected 26 spaces but found 24
48 | ERROR | [x] Array indentation error, expected 26 spaces but found 24
49 | ERROR | [x] Array indentation error, expected 26 spaces but found 24
52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 20
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 20
53 | ERROR | [ ] The array declaration extends to column 211 (the limit is 120). The array content should be split up
| | over multiple lines
54 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
55 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
55 | ERROR | [x] Expected newline after closing brace
56 | ERROR | [x] Whitespace found at end of line
57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
58 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
61 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
61 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
64 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 58 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

Time: 356ms; Memory: 6MB

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024