Hi!

Congrats for the module. It's excellent.
Just a few coding standards improvements.

Thanks.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cebasqueira created an issue. See original summary.

cebasqueira’s picture

gfcamilo’s picture

Status: Needs review » Reviewed & tested by the community

Issue testec

davy-r’s picture

Category: Bug report » Task
Berdir’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/src/Menu/MenuHelperInterface.php
    @@ -2,10 +2,14 @@
     
    +/**
    + * Class for Menu Helper.
    + */
     interface MenuHelperInterface {
    +
       /**
    

    That's not really a useful description.

  2. +++ b/src/Menu/MenuHelperInterface.php
    @@ -2,10 +2,14 @@
    -   * @param $menu_name
    -   * @return \Drupal\Core\Menu\MenuLinkInterface[]
    +   * {@inheritdoc}
        */
       public function getMenuLinks($menu_name);
    

    This can't use inheritdoc because it's actually the interface, there's nothing to inherit from.

  3. +++ b/src/Menu/MenuTreeStorageMenuHelper.php
    @@ -5,21 +5,25 @@ namespace Drupal\menu_trail_by_path\Menu;
       /**
    -   * @var MenuLinkManagerInterface
    +   * {@inheritdoc}
        */
       protected $menuLinkManager;
     
       /**
    -   * @var MenuTreeStorageInterface
    +   * {@inheritdoc}
        */
       protected $menuTreeStorage;
    

    also not correct, they are not inherited. what it needs is a description instead.

Same for many more changes.

urvashi_vora’s picture

Assigned: Unassigned » urvashi_vora
urvashi_vora’s picture

Assigned: urvashi_vora » Unassigned
Status: Needs work » Needs review
FileSize
19.23 KB

Hi,

Please review this patch.

Thanks

Berdir’s picture

Status: Needs review » Needs work

Coding standard changes must be done as merge request now to run phpcs, this is also failing tests.

nitin_lama’s picture

Assigned: Unassigned » nitin_lama

nitin_lama’s picture

Status: Needs work » Needs review

Please review.

nitin_lama’s picture

Assigned: nitin_lama » Unassigned