GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 871d34...713d9f )
by Steve
04:40
created

DefaultController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
wmc 2
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 5 1
A getChartModel() 0 4 1
1
<?php
2
3
namespace bedezign\yii2\audit\controllers;
4
5
use bedezign\yii2\audit\components\panels\RendersSummaryChartTrait;
6
use bedezign\yii2\audit\components\web\Controller;
7
use bedezign\yii2\audit\models\AuditEntry;
8
use Yii;
9
10
/**
11
 * DefaultController
12
 * @package bedezign\yii2\audit\controllers
13
 */
14
class DefaultController extends Controller
15
{
16
    use RendersSummaryChartTrait;
17
18 3
    /**
19
     * Module Default Action.
20 3
     * @return mixed
21
     */
22
    public function actionIndex()
23
    {
24
        $chartData = $this->getChartData();
25
        return $this->render('index', ['chartData' => $chartData]);
26
    }
27
28
    protected function getChartModel()
29
    {
30
        return AuditEntry::className();
31
    }
32
}
33