Coding standards issue

Created on 17 January 2025, 6 days ago

Problem/Motivation

FILE: ...social_timeline/src/SocialTimelineManager.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 41 ERRORS AFFECTING 40 LINES
--------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
8 | ERROR | [x] There must be one blank line after the namespace declaration
21 | ERROR | [x] Expected 1 blank line before function; 0 found
22 | ERROR | [x] Short array syntax must be used to define arrays
24 | ERROR | [x] Short array syntax must be used to define arrays
28 | ERROR | [x] Short array syntax must be used to define arrays
31 | ERROR | [x] Short array syntax must be used to define arrays
35 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Short array syntax must be used to define arrays
42 | ERROR | [x] Short array syntax must be used to define arrays
45 | ERROR | [x] Short array syntax must be used to define arrays
49 | ERROR | [x] Short array syntax must be used to define arrays
52 | ERROR | [x] Short array syntax must be used to define arrays
56 | ERROR | [x] Short array syntax must be used to define arrays
59 | ERROR | [x] Short array syntax must be used to define arrays
64 | ERROR | [x] Short array syntax must be used to define arrays
69 | ERROR | [x] Short array syntax must be used to define arrays
74 | ERROR | [x] Short array syntax must be used to define arrays
79 | ERROR | [x] Short array syntax must be used to define arrays
84 | ERROR | [x] Short array syntax must be used to define arrays
88 | ERROR | [x] Short array syntax must be used to define arrays
91 | ERROR | [x] Short array syntax must be used to define arrays
95 | ERROR | [x] Short array syntax must be used to define arrays
98 | ERROR | [x] Short array syntax must be used to define arrays
103 | ERROR | [x] Short array syntax must be used to define arrays
108 | ERROR | [x] Short array syntax must be used to define arrays
113 | ERROR | [x] Short array syntax must be used to define arrays
118 | ERROR | [x] Short array syntax must be used to define arrays
165 | ERROR | [x] Missing function doc comment
165 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
166 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
183 | ERROR | [x] Short array syntax must be used to define arrays
186 | ERROR | [x] Concat operator must be surrounded by a single space
188 | ERROR | [x] Short array syntax must be used to define arrays
198 | ERROR | [x] Short array syntax must be used to define arrays
208 | ERROR | [x] Short array syntax must be used to define arrays
230 | ERROR | [x] Short array syntax must be used to define arrays
231 | ERROR | [x] Short array syntax must be used to define arrays
235 | ERROR | [x] Short array syntax must be used to define arrays
246 | ERROR | [x] Expected 1 blank line after function; 0 found
247 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 41 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------

FILE: ...social_timeline/src/Plugin/Block/SocialTimelineBlock.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 85 ERRORS AND 2 WARNINGS AFFECTING 82 LINES
-------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
10 | WARNING | [x] Unused use statement
30 | ERROR | [x] Short array syntax must be used to define arrays
31 | ERROR | [x] Short array syntax must be used to define arrays
56 | ERROR | [x] Use null coalesce operator instead of ternary operator.
56 | ERROR | [x] Short array syntax must be used to define arrays
57 | ERROR | [x] Short array syntax must be used to define arrays
65 | ERROR | [x] Short array syntax must be used to define arrays
72 | ERROR | [x] Short array syntax must be used to define arrays
76 | ERROR | [x] Short array syntax must be used to define arrays
83 | ERROR | [x] Short array syntax must be used to define arrays
86 | ERROR | [x] Short array syntax must be used to define arrays
95 | ERROR | [x] Short array syntax must be used to define arrays
103 | ERROR | [x] Short array syntax must be used to define arrays
111 | ERROR | [x] Short array syntax must be used to define arrays
119 | ERROR | [x] Short array syntax must be used to define arrays
127 | ERROR | [x] Short array syntax must be used to define arrays
134 | ERROR | [x] Short array syntax must be used to define arrays
141 | ERROR | [x] Short array syntax must be used to define arrays
148 | ERROR | [x] Short array syntax must be used to define arrays
155 | ERROR | [x] Short array syntax must be used to define arrays
162 | ERROR | [x] Short array syntax must be used to define arrays
169 | ERROR | [x] Short array syntax must be used to define arrays
175 | ERROR | [x] Short array syntax must be used to define arrays
181 | ERROR | [x] Short array syntax must be used to define arrays
187 | ERROR | [x] Short array syntax must be used to define arrays
190 | ERROR | [x] Short array syntax must be used to define arrays
190 | ERROR | [x] Short array syntax must be used to define arrays
191 | ERROR | [x] Short array syntax must be used to define arrays
192 | ERROR | [x] Short array syntax must be used to define arrays
194 | ERROR | [x] Short array syntax must be used to define arrays
201 | ERROR | [x] Short array syntax must be used to define arrays
204 | ERROR | [x] Short array syntax must be used to define arrays
206 | ERROR | [x] Short array syntax must be used to define arrays
207 | ERROR | [x] Short array syntax must be used to define arrays
217 | ERROR | [x] Short array syntax must be used to define arrays
218 | ERROR | [x] Short array syntax must be used to define arrays
219 | ERROR | [x] Short array syntax must be used to define arrays
224 | ERROR | [x] Short array syntax must be used to define arrays
227 | ERROR | [x] Short array syntax must be used to define arrays
232 | ERROR | [x] Short array syntax must be used to define arrays
235 | ERROR | [x] Short array syntax must be used to define arrays
241 | ERROR | [x] Short array syntax must be used to define arrays
245 | ERROR | [x] Short array syntax must be used to define arrays
248 | ERROR | [x] Short array syntax must be used to define arrays
254 | ERROR | [x] Short array syntax must be used to define arrays
254 | ERROR | [x] Short array syntax must be used to define arrays
263 | ERROR | [x] Short array syntax must be used to define arrays
264 | ERROR | [x] Short array syntax must be used to define arrays
265 | ERROR | [x] Short array syntax must be used to define arrays
270 | ERROR | [x] Short array syntax must be used to define arrays
273 | ERROR | [x] Short array syntax must be used to define arrays
278 | ERROR | [x] Short array syntax must be used to define arrays
282 | ERROR | [x] Short array syntax must be used to define arrays
288 | ERROR | [x] Short array syntax must be used to define arrays
292 | ERROR | [x] Short array syntax must be used to define arrays
296 | ERROR | [x] Short array syntax must be used to define arrays
302 | ERROR | [x] Short array syntax must be used to define arrays
302 | ERROR | [x] Short array syntax must be used to define arrays
304 | ERROR | [x] Short array syntax must be used to define arrays
316 | ERROR | [x] Short array syntax must be used to define arrays
317 | ERROR | [x] Short array syntax must be used to define arrays
318 | ERROR | [x] Short array syntax must be used to define arrays
323 | ERROR | [x] Short array syntax must be used to define arrays
326 | ERROR | [x] Short array syntax must be used to define arrays
331 | ERROR | [x] Short array syntax must be used to define arrays
335 | ERROR | [x] Short array syntax must be used to define arrays
341 | ERROR | [x] Short array syntax must be used to define arrays
345 | ERROR | [x] Short array syntax must be used to define arrays
349 | ERROR | [x] Short array syntax must be used to define arrays
355 | ERROR | [x] Short array syntax must be used to define arrays
355 | ERROR | [x] Short array syntax must be used to define arrays
357 | ERROR | [x] Short array syntax must be used to define arrays
365 | ERROR | [x] Short array syntax must be used to define arrays
377 | ERROR | [ ] Function return type is not void, but function has no return statement
392 | ERROR | [x] Short array syntax must be used to define arrays
408 | ERROR | [x] Expected 1 blank line after function; 2 found
440 | ERROR | [x] Short array syntax must be used to define arrays
442 | ERROR | [x] Short array syntax must be used to define arrays
457 | ERROR | [x] Short array syntax must be used to define arrays
459 | ERROR | [x] Short array syntax must be used to define arrays
460 | ERROR | [x] Short array syntax must be used to define arrays
461 | ERROR | [x] Short array syntax must be used to define arrays
466 | ERROR | [x] Short array syntax must be used to define arrays
467 | WARNING | [x] A comma should follow the last multiline array item. Found: 'social_timeline/social_timeline'
471 | ERROR | [x] Expected 1 blank line after function; 0 found
472 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 86 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

Time: 204ms; Memory: 12MB

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇨🇴Colombia kinyein

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