SetupController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 6 1
1
<?php
2
3
namespace app\controllers;
4
5
use Yii;
6
7
/**
8
 * SetupController allows to setup the site and database.
9
 */
10
class SetupController extends BaseController
11
{
12
    /**
13
     * Run migrations.
14
     *
15
     * @return \yii\web\Response
16
     */
17
    public function actionIndex()
18
    {
19
        Yii::$app->runAction('migrate', ['interactive' => false]);
20
21
        return $this->goHome();
22
    }
23
}
24