Coding standard issues

Created on 26 April 2020, about 4 years ago
Updated 14 April 2023, about 1 year ago

FILE: ../modules/contrib/ws_views_field/ws_views_field.views.inc
-------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
7 | ERROR | [x] Expected 1 blank line before function; 2 found
8 | ERROR | [x] Short array syntax must be used to define arrays
10 | ERROR | [x] Short array syntax must be used to define arrays
-------------------------------------------------------------------------------------------

FILE: ../modules/contrib/ws_views_field/ws_views_field.tokens.inc
------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 1 WARNING AFFECTING 11 LINES
------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
7 | ERROR | [x] Short array syntax must be used to define arrays
8 | ERROR | [x] Short array syntax must be used to define arrays
11 | ERROR | [x] Short array syntax must be used to define arrays
22 | ERROR | [x] Short array syntax must be used to define arrays
29 | ERROR | [x] Short array syntax must be used to define arrays
34 | ERROR | [x] Short array syntax must be used to define arrays
36 | ERROR | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
36 | ERROR | [x] Short array syntax must be used to define arrays
44 | ERROR | [x] Short array syntax must be used to define arrays
54 | ERROR | [x] Short array syntax must be used to define arrays
56 | WARNING | [x] A comma should follow the last multiline array item. Found: $tokens
------------------------------------------------------------------------------------------------------------------------------------

FILE: ../modules/contrib/ws_views_field/src/Plugin/views/field/WSViewsField.php
----------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 1 WARNING AFFECTING 16 LINES
----------------------------------------------------------------------------------------------------------
3 | ERROR | [x] There must be one blank line after the namespace declaration
10 | WARNING | [x] Unused use statement
10 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
22 | ERROR | [ ] Missing short description in doc comment
30 | ERROR | [x] Doc comment short description must end with a full stop
31 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
31 | ERROR | [ ] Description for the @return value is missing
35 | ERROR | [x] Short array syntax must be used to define arrays
44 | ERROR | [x] Short array syntax must be used to define arrays
52 | ERROR | [x] Short array syntax must be used to define arrays
60 | ERROR | [x] Short array syntax must be used to define arrays
66 | ERROR | [x] Short array syntax must be used to define arrays
71 | ERROR | [x] Short array syntax must be used to define arrays
78 | ERROR | [ ] Missing short description in doc comment
83 | ERROR | [x] Short array syntax must be used to define arrays
105 | ERROR | [x] Short array syntax must be used to define arrays
115 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
115 | ERROR | [ ] Description for the @return value is missing
115 | ERROR | [x] Data types in @return tags need to be fully namespaced
119 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------------------------------------------

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India kuldeep_mehra27

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

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024