Drupal standard coding issue

Created on 9 January 2023, almost 2 years ago
Updated 28 January 2023, almost 2 years ago

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\chatgpt_plugin\chatgpt\chatgpt.routing.yml
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
14 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\chatgpt_plugin\chatgpt\css\chatgpt.css
---------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\chatgpt_plugin\chatgpt\src\Form\ChatGPTConfigForm.php
------------------------------------------------------------------------------------------------------------
FOUND 64 ERRORS AFFECTING 56 LINES
------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Missing class doc comment
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
13 | ERROR | [x] Whitespace found at end of line
14 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
14 | ERROR | [x] Whitespace found at end of line
15 | ERROR | [x] Whitespace found at end of line
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
30 | ERROR | [x] Whitespace found at end of line
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
33 | ERROR | [x] Whitespace found at end of line
34 | ERROR | [x] Whitespace found at end of line
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
39 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
40 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
40 | ERROR | [x] Whitespace found at end of line
41 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
41 | ERROR | [x] Whitespace found at end of line
42 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
43 | ERROR | [x] Array closing indentation error, expected 8 spaces but found 10
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
47 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
48 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
49 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [x] Whitespace found at end of line
53 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
54 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
55 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
56 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
61 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
62 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
62 | ERROR | [x] Whitespace found at end of line
63 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
65 | ERROR | [x] Whitespace found at end of line
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
67 | ERROR | [x] Whitespace found at end of line
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
74 | ERROR | [x] Whitespace found at end of line
75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
84 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 8
90 | ERROR | [x] Whitespace found at end of line
91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
92 | ERROR | [x] Expected 1 newline at end of file; 0 found
92 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 64 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\chatgpt_plugin\chatgpt\src\Form\ChatGPTForm.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 115 ERRORS AND 2 WARNINGS AFFECTING 83 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | ERROR | [x] Missing class doc comment
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Opening brace should be on the same line as the declaration
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] Expected 5 space(s) before asterisk; 4 found
21 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
24 | ERROR | [x] Short array syntax must be used to define arrays
24 | ERROR | [x] There must be no space between the "array" keyword and the opening parenthesis
25 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
26 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
27 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
30 | ERROR | [x] Short array syntax must be used to define arrays
31 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
32 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
33 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
33 | ERROR | [x] Short array syntax must be used to define arrays
34 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
35 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
36 | ERROR | [x] Array indentation error, expected 14 spaces but found 17
37 | ERROR | [x] Array indentation error, expected 14 spaces but found 17
37 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Array indentation error, expected 19 spaces but found 20
39 | ERROR | [x] Array indentation error, expected 19 spaces but found 20
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
44 | ERROR | [x] Short array syntax must be used to define arrays
44 | ERROR | [x] There must be no space between the "array" keyword and the opening parenthesis
45 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
46 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
47 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
54 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
55 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
57 | ERROR | [x] Whitespace found at end of line
58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
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] Expected 5 space(s) before asterisk; 4 found
68 | ERROR | [x] Doc comment short description must start with a capital letter
69 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
76 | ERROR | [x] Line indented incorrectly; expected 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 | [ ] The array declaration extends to column 137 (the limit is 80). The array content should be split up over multiple lines
80 | ERROR | [x] Short array syntax must be used to define arrays
80 | ERROR | [x] Expected one space after the comma, 0 found
80 | ERROR | [x] Expected one space after the comma, 0 found
80 | ERROR | [x] Expected 1 space(s) after cast statement; 0 found
80 | ERROR | [x] Expected 1 space(s) after cast statement; 0 found
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
82 | ERROR | [x] Short array syntax must be used to define arrays
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
84 | ERROR | [x] Concat operator must be surrounded by a single space
86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
86 | ERROR | [x] No space found before comment text; expected "// cURL starts" but found "//cURL starts"
86 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
87 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
90 | ERROR | [x] Expected one space after the comma, 0 found
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
91 | ERROR | [x] Expected one space after the comma, 0 found
92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
92 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
93 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
95 | ERROR | [x] No space found before comment text; expected "// error handling for cURL" but found "//error handling for cURL"
95 | ERROR | [x] Inline comments must start with a capital letter
95 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
96 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
97 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
98 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
99 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
99 | ERROR | [x] Inline comments must start with a capital letter
100 | WARNING | [ ] Code after the EXIT statement on line 98 cannot be executed
100 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
103 | WARNING | [x] There must be no blank line following an inline comment
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
103 | ERROR | [x] No space found before comment text; expected "// cURL ends" but found "//cURL ends"
103 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
105 | ERROR | [x] No space found before comment text; expected "// decoding the json data" but found "//decoding the json data"
105 | ERROR | [x] Inline comments must start with a capital letter
105 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
110 | ERROR | [x] Whitespace found at end of line
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
113 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 115 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India akshay.kelotra Indore

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.71.5 2024