Controller   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A actions() 0 9 1
1
<?php
2
namespace App\Http\Api\Frontend\Controller;
3
4
use App\Http\Rest\Controller as BaseController;
5
use yii\rest\OptionsAction;
6
7
class Controller extends BaseController
8
{
9
    use ControllerTrait;
0 ignored issues
show
Bug introduced by
The trait App\Http\Api\Frontend\Controller\ControllerTrait requires the property $params which is not provided by App\Http\Api\Frontend\Controller\Controller.
Loading history...
10
11
    public function actions()
12
    {
13
        $acitons = parent::actions();
14
15
        $acitons['options'] = [
16
            'class' => OptionsAction::class,
17
        ];
18
19
        return $acitons;
20
    }
21
}
22