cjtterabytesoft/yii2-adminlte-basic

View on GitHub
widgets/MainSidebar.php

Summary

Maintainability
A
1 hr
Test Coverage

Method renderItem has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function renderItem($item)
    {
        $item['badgeOptions'] = isset($item['badgeOptions']) ? $item['badgeOptions'] : [];
        if (!ArrayHelper::getValue($item, 'badgeOptions.class')) {
            $bg = isset($item['badgeBgClass']) ? $item['badgeBgClass'] : $this->badgeBgClass;
Severity: Minor
Found in widgets/MainSidebar.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status