luyadev/luya-module-admin

View on GitHub
src/apis/UserController.php

Summary

Maintainability
A
1 hr
Test Coverage
F
57%

Showing 2 of 2 total issues

Method actionSession has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function actionSession()
{
$user = Yii::$app->adminuser->identity;
 
$qrcode = null;
Severity: Minor
Found in src/apis/UserController.php - About 1 hr to fix

    Function actionSessionUpdate has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    public function actionSessionUpdate()
    {
    $identity = Yii::$app->adminuser->identity;
    $user = clone Yii::$app->adminuser->identity;
    $user->attributes = Yii::$app->request->bodyParams;
    Severity: Minor
    Found in src/apis/UserController.php - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status