Phpcs Drupal coding standard issue

Created on 15 February 2023, over 1 year ago
Updated 18 July 2023, about 1 year ago

FILE: /var/www/html/contribution/web/modules/contrib/childfocus_notfound/childfocus_notfound.install
----------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
5 | ERROR | [x] Missing function doc comment
19 | WARNING | [x] A comma should follow the last multiline array item. Found: false
19 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
20 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/childfocus_notfound/src/Plugin/Condition/ChildfocusPageNotFound.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
55 | WARNING | [x] A comma should follow the last multiline array item. Found: 0
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/childfocus_notfound/src/Plugin/Block/ChildfocusNotfound.php
------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------------------
26 | ERROR | [x] The open comment tag must be the only content on the line
26 | ERROR | [ ] Missing short description in doc comment
26 | ERROR | [x] Do not append variable name "$languageManager" to the type declaration in a member variable comment
29 | ERROR | [ ] Missing short description in doc comment
30 | ERROR | [ ] Missing parameter comment
31 | ERROR | [ ] Missing parameter comment
32 | ERROR | [ ] Missing parameter comment
33 | ERROR | [ ] Missing parameter comment
59 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
82 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/childfocus_notfound/src/Form/ChildfocusNotfoundForm.php
------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 5 WARNINGS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Missing class doc comment
32 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
39 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
47 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
48 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
49 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
51 | WARNING | [x] A comma should follow the last multiline array item. Found: 'en'
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 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

Comments & Activities

Production build 0.71.5 2024