Drupal Coding Standards Issues | phpcs

Created on 9 February 2023, about 2 years ago

FILE: /var/www/html/contribution/web/modules/contrib/dialogs/dialogs.module
-------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------
17 | ERROR | [x] Case breaking statements must be followed by a single blank line
17 | WARNING | [ ] There must be no blank line following an inline comment
17 | ERROR | [x] Comments may not appear after statements
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/dialogs/src/Dialogifyer.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Missing class doc comment
31 | ERROR | [ ] Missing short description in doc comment
36 | ERROR | [ ] Missing short description in doc comment
64 | ERROR | [ ] Type hint "array" missing for $libraries
64 | ERROR | [ ] Type hint "array" missing for $queryParametersToUnset
78 | ERROR | [x] Expected "\Drupal\Core\Render\BubbleableMetadata|null" but found "\Drupal\Core\Render\BubbleableMetadata|NULL" for parameter type
----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/dialogs/src/DialogifyerFactory.php
---------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------
8 | ERROR | [x] Missing class doc comment
34 | ERROR | [ ] Missing parameter comment
35 | ERROR | [ ] Missing parameter comment
45 | ERROR | [x] Expected "array|null" but found "array|NULL" for parameter type
76 | ERROR | [x] list(...) is forbidden, use [...] instead.
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/dialogs/src/DialogsHooks.php
---------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
17 | ERROR | [ ] Missing parameter comment
31 | ERROR | [x] Doc comment star missing
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------

📌 Task
Status

RTBC

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