Phpcs Drupal coding standard issue

Created on 9 February 2023, over 1 year ago
Updated 29 May 2024, 28 days ago

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/tmgmt_smartcat.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/src/SmartcatEndpoints.php
---------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 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
8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/src/Service/Document.php
-----------------------------------------------------------------------------------------------
FOUND 20 ERRORS AFFECTING 16 LINES
-----------------------------------------------------------------------------------------------
9 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] Opening brace should be on the same line as the declaration
11 | ERROR | [ ] Missing short description in doc comment
16 | ERROR | [x] Missing function doc comment
17 | ERROR | [x] Opening brace should be on the same line as the declaration
22 | ERROR | [x] Doc comment short description must end with a full stop
24 | ERROR | [ ] Missing parameter comment
24 | ERROR | [x] Data types in @param tags need to be fully namespaced
25 | ERROR | [x] Separate the @param and @return sections by a blank line.
25 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
25 | ERROR | [ ] Description for the @return value is missing
26 | ERROR | [x] Separate the @return and @throws sections by a blank line.
29 | ERROR | [x] Opening brace should be on the same line as the declaration
41 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
53 | ERROR | [x] Doc comment short description must end with a full stop
55 | ERROR | [ ] Missing parameter comment
56 | ERROR | [x] Separate the @param and @return sections by a blank line.
56 | ERROR | [ ] Description for the @return value is missing
59 | ERROR | [x] Opening brace should be on the same line as the declaration
66 | ERROR | [x] Expected 1 blank line after function; 0 found
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/src/Plugin/tmgmt/Translator/SmartcatTranslator.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 212 ERRORS AND 10 WARNINGS AFFECTING 181 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
11 | WARNING | [x] Unused use statement
31 | ERROR | [x] Opening brace should be on the same line as the declaration
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [ ] Missing short description in doc comment
33 | ERROR | [x] Data types in @var tags need to be fully namespaced
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Doc comment short description must end with a full stop
40 | ERROR | [ ] Missing parameter comment
40 | ERROR | [x] Data types in @param tags need to be fully namespaced
40 | ERROR | [x] Data types in @param tags need to be fully namespaced
41 | ERROR | [x] Separate the @param and @return sections by a blank line.
41 | ERROR | [ ] Description for the @return value is missing
41 | ERROR | [x] Data types in @return tags need to be fully namespaced
41 | ERROR | [x] Data types in @return tags need to be fully namespaced
42 | ERROR | [x] Separate the @return and @throws sections by a blank line.
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Opening brace should be on the same line as the declaration
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
56 | ERROR | [x] Doc comment short description must end with a full stop
58 | ERROR | [ ] Missing parameter comment
59 | ERROR | [x] Separate the @param and @return sections by a blank line.
59 | ERROR | [ ] Description for the @return value is missing
59 | ERROR | [x] Data types in @return tags need to be fully namespaced
59 | ERROR | [x] Data types in @return tags need to be fully namespaced
60 | ERROR | [x] Separate the @return and @throws sections by a blank line.
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
63 | ERROR | [x] Opening brace should be on the same line as the declaration
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] Data types in @var tags need to be fully namespaced
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
69 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
70 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
71 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
72 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
73 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
74 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
84 | ERROR | [x] Expected newline after closing brace
85 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
86 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
87 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
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
92 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
94 | ERROR | [x] Short array syntax must be used to define arrays
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
96 | ERROR | [x] Expected newline after closing brace
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 12
100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
103 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
105 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
106 | ERROR | [x] Doc comment short description must end with a full stop
108 | ERROR | [ ] Missing parameter comment
108 | ERROR | [x] Data types in @param tags need to be fully namespaced
109 | ERROR | [x] Separate the @param and @return sections by a blank line.
109 | ERROR | [ ] Description for the @return value is missing
109 | ERROR | [x] Data types in @return tags need to be fully namespaced
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
112 | ERROR | [x] Opening brace should be on the same line as the declaration
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
114 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
117 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
118 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
119 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
121 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
123 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
124 | ERROR | [x] Doc comment short description must end with a full stop
126 | ERROR | [ ] Missing parameter comment
126 | ERROR | [x] Data types in @param tags need to be fully namespaced
126 | ERROR | [x] Data types in @param tags need to be fully namespaced
127 | ERROR | [ ] Missing parameter comment
127 | ERROR | [ ] Missing parameter type
128 | ERROR | [x] Separate the @param and @return sections by a blank line.
128 | ERROR | [ ] Description for the @return value is missing
130 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
131 | ERROR | [x] Opening brace should be on the same line as the declaration
132 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
133 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
134 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
135 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
136 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
137 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
138 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
139 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
140 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
141 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
142 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
144 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
147 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
149 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
150 | ERROR | [x] Doc comment short description must end with a full stop
152 | ERROR | [ ] Missing parameter comment
152 | ERROR | [x] Data types in @param tags need to be fully namespaced
152 | ERROR | [x] Data types in @param tags need to be fully namespaced
153 | ERROR | [ ] Missing parameter comment
153 | ERROR | [ ] Missing parameter type
154 | ERROR | [ ] Missing parameter comment
154 | ERROR | [ ] Missing parameter type
155 | ERROR | [x] Separate the @param and @return sections by a blank line.
155 | ERROR | [ ] Description for the @return value is missing
157 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
157 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
158 | ERROR | [x] Opening brace should be on the same line as the declaration
159 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
161 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
163 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
165 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
166 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
167 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
167 | ERROR | [x] Expected newline after closing brace
168 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
169 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
171 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
172 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
172 | ERROR | [x] Inline comments must start with a capital letter
173 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
174 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
175 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
176 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
176 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
177 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
177 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
178 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
179 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
179 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
180 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
181 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
182 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
183 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
185 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
186 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
187 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
187 | ERROR | [x] Expected newline after closing brace
188 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
189 | ERROR | [x] Short array syntax must be used to define arrays
190 | ERROR | [x] Short array syntax must be used to define arrays
193 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
194 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
196 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
197 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
198 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
198 | ERROR | [x] Expected newline after closing brace
199 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
200 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
201 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
203 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
203 | ERROR | [x] Missing function doc comment
204 | ERROR | [x] Opening brace should be on the same line as the declaration
205 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
207 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
209 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
211 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
213 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
215 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
217 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
219 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
223 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
224 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
226 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
227 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
229 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
231 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
233 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
237 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16
238 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12
239 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
241 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
242 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
243 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
244 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
245 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
246 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
247 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
248 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
250 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
251 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
252 | WARNING | [x] A comma should follow the last multiline array item. Found: $selectedMt
254 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
254 | ERROR | [x] Expected newline after closing brace
255 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
258 | WARNING | [x] A comma should follow the last multiline array item. Found: $availableProjectMT
260 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
262 | WARNING | [x] There must be no blank line following an inline comment
262 | WARNING | [ ] There must be no blank line following an inline comment
262 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
262 | ERROR | [x] Inline comments must start with a capital letter
262 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
264 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
266 | WARNING | [x] A comma should follow the last multiline array item. Found: 1
269 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
271 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
273 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
275 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
276 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
277 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
277 | ERROR | [x] Expected newline after closing brace
278 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
279 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
281 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
282 | WARNING | [x] A comma should follow the last multiline array item. Found: $rule
284 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
284 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 201 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/src/Controller/SmartcatController.php
---------------------------------------------------------------------------------------------------------
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/contribution/web/modules/contrib/tmgmt_smartcat/src/SmartcatHelper.php
---------------------------------------------------------------------------------------------------------
FOUND 72 ERRORS AND 8 WARNINGS AFFECTING 71 LINES
---------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing trait 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 | [ ] Parameter $workflowStages is not described in comment
8 | ERROR | [x] Doc comment short description must end with a full stop
10 | ERROR | [ ] Missing parameter comment
11 | ERROR | [ ] Missing parameter comment
12 | ERROR | [ ] Missing parameter comment
12 | ERROR | [x] Expected "string|null" but found "string|NULL" for parameter type
13 | ERROR | [x] Separate the @param and @return sections by a blank line.
13 | ERROR | [ ] Description for the @return value is missing
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Expected 1 blank line before function; 0 found
16 | ERROR | [x] Opening brace should be on the same line as the declaration
17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
24 | WARNING | [x] A comma should follow the last multiline array item. Found: 'smartcat-drupal-tmgmt'
25 | WARNING | [x] A comma should follow the last multiline array item. Found: )
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 | [ ] Description for the @return value is missing
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
35 | ERROR | [x] Opening brace should be on the same line as the declaration
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
40 | WARNING | [x] A comma should follow the last multiline array item. Found: )
41 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
46 | ERROR | [x] Doc comment short description must end with a full stop
48 | ERROR | [ ] Missing parameter comment
49 | ERROR | [ ] Missing parameter comment
50 | ERROR | [x] Separate the @param and @return sections by a blank line.
50 | ERROR | [ ] Description for the @return value is missing
52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
53 | ERROR | [x] Opening brace should be on the same line as the declaration
54 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
57 | WARNING | [x] A comma should follow the last multiline array item. Found: $content
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
62 | ERROR | [x] Doc comment short description must end with a full stop
64 | ERROR | [ ] Missing parameter comment
65 | ERROR | [ ] Missing parameter comment
66 | ERROR | [x] Separate the @param and @return sections by a blank line.
66 | ERROR | [ ] Description for the @return value is missing
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
69 | ERROR | [x] Opening brace should be on the same line as the declaration
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
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 2 spaces, found 4
75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
76 | ERROR | [x] Doc comment short description must end with a full stop
78 | ERROR | [ ] Missing parameter comment
78 | ERROR | [ ] Missing parameter type
79 | ERROR | [x] Separate the @param and @return sections by a blank line.
79 | ERROR | [ ] Description for the @return value is missing
81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
82 | ERROR | [x] Opening brace should be on the same line as the declaration
83 | 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
87 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
88 | ERROR | [x] Doc comment short description must end with a full stop
90 | ERROR | [ ] Description for the @return value is missing
92 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
93 | ERROR | [x] Opening brace should be on the same line as the declaration
94 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
96 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
97 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
99 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
100 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
104 | WARNING | [x] A comma should follow the last multiline array item. Found: "AtFirstStage"
106 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
107 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
108 | WARNING | [x] A comma should follow the last multiline array item. Found: null
108 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
109 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 64 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/src/SmartcatApi.php
------------------------------------------------------------------------------------------------------
FOUND 174 ERRORS AND 13 WARNINGS AFFECTING 160 LINES
------------------------------------------------------------------------------------------------------
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
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
14 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
15 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] Data types in @var tags need to be fully namespaced
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [ ] Missing short description in doc comment
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
28 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [ ] Missing short description in doc comment
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [ ] Missing short description in doc comment
39 | ERROR | [ ] Missing parameter comment
40 | ERROR | [ ] Missing parameter comment
41 | ERROR | [ ] Missing parameter comment
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Opening brace should be on the same line as the declaration
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
52 | ERROR | [x] Doc comment short description must end with a full stop
54 | ERROR | [ ] Description for the @return value is missing
55 | ERROR | [x] There must be no blank lines after the function comment
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
58 | ERROR | [x] Opening brace should be on the same line as the declaration
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | WARNING | [x] A comma should follow the last multiline array item. Found: )
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [ ] Parameter $workflowStages is not described in comment
66 | ERROR | [x] Doc comment short description must end with a full stop
68 | ERROR | [ ] Missing parameter comment
69 | ERROR | [ ] Missing parameter comment
70 | ERROR | [ ] Missing parameter comment
70 | ERROR | [x] Expected "string|null" but found "string|NULL" for parameter type
71 | ERROR | [x] Separate the @param and @return sections by a blank line.
71 | ERROR | [ ] Description for the @return value is missing
72 | ERROR | [x] There must be no blank lines after the function comment
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
78 | WARNING | [x] A comma should follow the last multiline array item. Found: )
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 | [ ] Missing parameter comment
87 | ERROR | [ ] Missing parameter comment
88 | ERROR | [x] Separate the @param and @return sections by a blank line.
88 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
88 | ERROR | [ ] Description for the @return value is missing
89 | ERROR | [x] There must be no blank lines after the function comment
91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
92 | ERROR | [x] Opening brace should be on the same line as the declaration
93 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
94 | WARNING | [ ] Unused variable $response.
94 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
96 | WARNING | [x] A comma should follow the last multiline array item. Found: )
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
102 | ERROR | [x] Doc comment short description must end with a full stop
104 | ERROR | [ ] Missing parameter comment
105 | ERROR | [x] Separate the @param and @return sections by a blank line.
105 | ERROR | [ ] Description for the @return value is missing
107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
108 | ERROR | [x] Opening brace should be on the same line as the declaration
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
110 | WARNING | [x] A comma should follow the last multiline array item. Found: )
112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
113 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
115 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
116 | ERROR | [x] Doc comment short description must end with a full stop
118 | ERROR | [ ] Missing parameter comment
119 | ERROR | [x] Separate the @param and @return sections by a blank line.
119 | ERROR | [ ] Description for the @return value is missing
121 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
122 | ERROR | [x] Opening brace should be on the same line as the declaration
123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
125 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
127 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
128 | ERROR | [x] Doc comment short description must end with a full stop
130 | ERROR | [ ] Missing parameter comment
131 | ERROR | [x] Separate the @param and @return sections by a blank line.
131 | ERROR | [ ] Description for the @return value is missing
133 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
134 | ERROR | [x] Opening brace should be on the same line as the declaration
135 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
136 | WARNING | [x] A comma should follow the last multiline array item. Found: )
138 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
140 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
142 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
143 | ERROR | [x] Doc comment short description must end with a full stop
144 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
145 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
145 | ERROR | [ ] Missing parameter comment
146 | ERROR | [x] Separate the @param and @return sections by a blank line.
146 | ERROR | [ ] Description for the @return value is missing
148 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
149 | ERROR | [x] Opening brace should be on the same line as the declaration
150 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
151 | WARNING | [x] A comma should follow the last multiline array item. Found: )
153 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
154 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
156 | ERROR | [x] Missing function doc comment
156 | ERROR | [ ] Public method name "SmartcatApi::availableProjectMT" is not in lowerCamel format
157 | ERROR | [x] Opening brace should be on the same line as the declaration
158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
159 | WARNING | [x] A comma should follow the last multiline array item. Found: $smartcatProjectId
162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
163 | WARNING | [x] A comma should follow the last multiline array item. Found: )
166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
167 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
169 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
169 | ERROR | [x] Missing function doc comment
170 | ERROR | [x] Opening brace should be on the same line as the declaration
171 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
172 | WARNING | [x] A comma should follow the last multiline array item. Found: $smartcatProjectId
175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
177 | WARNING | [x] A comma should follow the last multiline array item. Found: $enginesList
180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
181 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
183 | ERROR | [x] Missing function doc comment
184 | ERROR | [x] Opening brace should be on the same line as the declaration
185 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
186 | WARNING | [x] A comma should follow the last multiline array item. Found: $smartcatProjectId
189 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
191 | WARNING | [x] A comma should follow the last multiline array item. Found: $rules
194 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
197 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
197 | ERROR | [x] Missing function doc comment
198 | ERROR | [x] Opening brace should be on the same line as the declaration
199 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
201 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
202 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
203 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
205 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
206 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
208 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
209 | ERROR | [x] Doc comment short description must end with a full stop
211 | ERROR | [ ] Description for the @return value is missing
213 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
214 | ERROR | [x] Opening brace should be on the same line as the declaration
215 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
216 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
218 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
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
226 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
228 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
229 | ERROR | [x] Doc comment short description must end with a full stop
230 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
231 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
231 | ERROR | [ ] Missing parameter comment
231 | ERROR | [x] Data types in @param tags need to be fully namespaced
232 | ERROR | [x] Separate the @param and @return sections by a blank line.
232 | ERROR | [ ] Description for the @return value is missing
234 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
235 | ERROR | [x] Opening brace should be on the same line as the declaration
236 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
237 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
237 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
237 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
238 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
238 | ERROR | [x] Expected 1 blank line after function; 0 found
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 153 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/src/SmartcatTranslatorUi.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 108 ERRORS AND 14 WARNINGS AFFECTING 92 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
19 | ERROR | [x] Opening brace should be on the same line as the declaration
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Doc comment short description must end with a full stop
23 | ERROR | [ ] Missing parameter comment
24 | ERROR | [ ] Missing parameter comment
24 | ERROR | [x] Data types in @param tags need to be fully namespaced
25 | ERROR | [x] Separate the @param and @return sections by a blank line.
25 | ERROR | [ ] Description for the @return value is missing
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
27 | ERROR | [x] Expected 1 blank line before function; 0 found
28 | ERROR | [x] Opening brace should be on the same line as the declaration
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
33 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
34 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
34 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
38 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
39 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
39 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
40 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
41 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
41 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
42 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
42 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
43 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
43 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Short array syntax must be used to define arrays
47 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
48 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
48 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
49 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
51 | ERROR | [x] Short array syntax must be used to define arrays
52 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
53 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
53 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
54 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
57 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
61 | ERROR | [x] Doc comment short description must end with a full stop
63 | ERROR | [ ] Missing parameter comment
64 | ERROR | [ ] Missing parameter comment
64 | ERROR | [x] Data types in @param tags need to be fully namespaced
65 | ERROR | [x] Separate the @param and @return sections by a blank line.
65 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
65 | ERROR | [ ] Description for the @return value is missing
67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
68 | ERROR | [x] Opening brace should be on the same line as the declaration
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
71 | 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
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
81 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
82 | ERROR | [x] Expected newline after closing brace
83 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
83 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
84 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
84 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
85 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
86 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
89 | ERROR | [x] Doc comment short description must end with a full stop
91 | ERROR | [ ] Missing parameter comment
91 | ERROR | [x] Data types in @param tags need to be fully namespaced
92 | ERROR | [x] Separate the @param and @return sections by a blank line.
92 | ERROR | [ ] Description for the @return value is missing
94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
95 | ERROR | [x] Opening brace should be on the same line as the declaration
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
97 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
98 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
99 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
101 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
102 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
103 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
103 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
104 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
109 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
110 | ERROR | [x] Doc comment short description must end with a full stop
112 | ERROR | [ ] Missing parameter comment
113 | ERROR | [ ] Missing parameter comment
113 | ERROR | [x] Data types in @param tags need to be fully namespaced
114 | ERROR | [x] Separate the @param and @return sections by a blank line.
114 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
114 | ERROR | [ ] Description for the @return value is missing
116 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
117 | ERROR | [x] Opening brace should be on the same line as the declaration
118 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
122 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
124 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
124 | ERROR | [x] Missing function doc comment
125 | ERROR | [x] Opening brace should be on the same line as the declaration
126 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
127 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
128 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
129 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
129 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
130 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
131 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
131 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
132 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
132 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
134 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
134 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
138 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
138 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 95 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/README.md
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 115 characters
7 | WARNING | Line exceeds 80 characters; contains 132 characters
-----------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/tmgmt_smartcat/tmgmt_smartcat.module
------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] The second line in the file doc comment must be "@file"
3 | ERROR | [x] Doc comment short description must end with a full stop
8 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2
9 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
9 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 3
16 | WARNING | [x] 'TODO: Add cron task for checking Smartcat project status' should match the format '@todo Fix problem X here.'
17 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India himanshu_jhaloya Mandsaur

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