Coding Standard Issues

Created on 6 December 2024, 3 months ago

FILE: ...11-site/web/modules/contrib/menu_admin_per_menu/src/MenuAdminPerMenuAccessInterface.php
---------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------
61 | ERROR | [x] Parameter $menu_link_content has null default value, but is not marked as
| | nullable.
74 | ERROR | [x] Parameter $menu_link_plugin has null default value, but is not marked as
| | nullable.
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------

FILE: ...al11-site/web/modules/contrib/menu_admin_per_menu/src/Access/MenuAdminPerMenuAccess.php
---------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------
55 | WARNING | [ ] Menu::loadMultiple calls should be avoided in classes, use dependency
| | injection instead
101 | ERROR | [x] Parameter $menu_link_content has null default value, but is not marked
| | as nullable.
117 | ERROR | [x] Parameter $menu_link_plugin has null default value, but is not marked
| | as nullable.
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY

๐Ÿ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ดColombia yasminOrj

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

Merge Requests

Comments & Activities

  • Issue created by @yasminOrj
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia arunsahijpal

    Working on it!

  • Pipeline finished with Failed
    2 months ago
    Total: 212s
    #369491
  • Pipeline finished with Failed
    2 months ago
    Total: 260s
    #369492
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia arunsahijpal

    Hi @yasminorj ,
    I've fixed the phpcs errors and the phpcs is also passing the pipeline, kindly check.

  • ๐Ÿ‡ต๐Ÿ‡ญPhilippines roberttabigue

    Hi @arunsahijpal,

    After reviewing and applying the MR!21 to the Menu Admin per Menu module with 8.x-1.x-dev on Drupal 10, not all of the PHPCS errors were resolved.
    See below:

    FILE: /Users/roberttabigue/Project/DrupalOrg/drupalorgissues/web/modules/contrib/menu_admin_per_menu/README.md
    --------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------
     11 | WARNING | Line exceeds 80 characters; contains 192 characters
    --------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/roberttabigue/Project/DrupalOrg/drupalorgissues/web/modules/contrib/menu_admin_per_menu/src/Access/MenuAdminPerMenuAccess.php
    ------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------
     10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityStorageInterface.
    ------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------

    I ran this command on the module:
    phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml menu_admin_per_menu

    I'm moving this to โ€˜Needs workโ€™ for now.

    Thank you!

  • Pipeline finished with Failed
    2 months ago
    Total: 411s
    #370672
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia arunsahijpal

    Hi @roberttabigue,
    Fixed the remaining phpcs errors, kindly check.

  • ๐Ÿ‡ต๐Ÿ‡ญPhilippines roberttabigue

    Hi @arunsahijpal,

    I have applied the latest MR !21 to the Menu Admin per Menu module with 8.x-1.x-dev on Drupal 10 and confirmed all PHPCS errors have been fixed.

    I ran this command on the module:
    phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml menu_admin_per_menu

    Please see the attached file for reference.

    I'm moving this now to โ€˜RTBCโ€™.

    Thank you!

Production build 0.71.5 2024