Phpcs Drupal coding standard issue

Created on 17 February 2023, over 1 year ago
Updated 11 January 2024, 10 months ago

FILE: /var/www/html/contribution/web/modules/contrib/lite_youtube/templates/lite-youtube.html.twig
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
11 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/lite_youtube/src/Plugin/Field/FieldFormatter/LiteYoutubeFormatter.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 19 WARNINGS AFFECTING 20 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
17 | WARNING | [x] Unused use statement
18 | WARNING | [x] Unused use statement
19 | WARNING | [x] Unused use statement
20 | WARNING | [x] Unused use statement
21 | WARNING | [x] Unused use statement
22 | WARNING | [x] Unused use statement
50 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
72 | ERROR | [ ] The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
80 | WARNING | [ ] #options values usually have to run through t() for translation
108 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
139 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India himanshu_jhaloya Indore

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

Comments & Activities

Production build 0.71.5 2024