Phpcs drupal coding standard issue

Created on 19 July 2022, over 2 years ago
Updated 19 July 2024, 4 months ago

FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\lbam\lbam.module
------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
40 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
40 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
85 | ERROR | [x] Missing function doc comment
92 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\lbam\src\Plugin\LayoutSettings\AnchorMenu.php
-------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
13 | ERROR | [ ] Missing short description in doc comment
78 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
82 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India Harsh panchal

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India riddhi.addweb

    I have applied the "3298252-5" Patch cleanly but still, there are some error.
    Please check the screenshot for the same.

    FILE: /var/www/html/web/drupal_8.9/web/modules/contrib/lbam/lbam.module
    -----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------
     9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\Display\EntityViewDisplayInterface.
    -----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------------------
    
  • Assigned to hetal.solanki
  • Merge request !2Fixed Remaining Issue → (Open) created by hetal.solanki
  • Issue was unassigned.
  • Status changed to RTBC 4 months ago
  • 🇮🇳India hetal.solanki

    Hello,

    I have reviewed and Fixed Remaining Issue.
    Moving to RTBC.
    Thank you!!

    
    FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/lbam-3298252/src/Plugin/LayoutSettings/AnchorMenu.php
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
    ---------------------------------------------------------------------------------------------------------------------
     13 | ERROR   | [ ] Missing short description in doc comment
     78 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
     82 | ERROR   | [x] Array closing indentation error, expected 4 spaces but found 6
     90 | WARNING | [ ] Unused variable $data.
    ---------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/lbam-3298252/lbam.module
    -------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 3 LINES
    -------------------------------------------------------------------------------------------------
      40 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
      40 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
      47 | ERROR | [x] Object operator not indented correctly; expected 4 spaces but found 6
     116 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
    -------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------
    
    
Production build 0.71.5 2024