This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
59
{
60
if (is_array($item)) {
61
if (!array_key_exists('class', $item)) {
62
$item['class'] = MainMenuItem::class;
63
}
64
$item = Yii::createObject($item);
65
}
66
$this->menuItems[] = $item;
67
}
68
69
/**
70
* Returns main menu template with rendered menu items.
The doc-type string. could not be parsed: Unknown type name "string." at position 0. (view supported doc-types)
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.