luyadev/luya-module-admin

View on GitHub
src/apis/SearchController.php

Summary

Maintainability
B
5 hrs
Test Coverage
F
20%

Showing 2 of 2 total issues

Function actionIndex has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
Open

public function actionIndex($query)
{
$search = [];
$module = Yii::$app->getModule('admin');
 
 
Severity: Minor
Found in src/apis/SearchController.php - About 3 hrs to fix

Method actionIndex has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function actionIndex($query)
{
$search = [];
$module = Yii::$app->getModule('admin');
 
 
Severity: Minor
Found in src/apis/SearchController.php - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status