AdminController   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 10 3
1
<?php
2
3
namespace humhub\modules\steam\controllers;
4
5
use Yii;
6
use humhub\modules\admin\components\Controller;
0 ignored issues
show
Bug introduced by
The type humhub\modules\admin\components\Controller was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use humhub\modules\steam\models\ConfigureForm;
8
9
class AdminController extends Controller
10
{
11
12
    public function actionIndex()
13
    {
14
        $model = new ConfigureForm();
15
        $model->loadSettings();
16
17
        if ($model->load(Yii::$app->request->post()) && $model->save()) {
18
            $this->view->saved();
19
        }
20
21
        return $this->render('index', ['model' => $model]);
22
    }
23
24
}
25