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::getChartModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
crap 2
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