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.

DashboardController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A index() 0 4 1
1
<?php
2
3
/**
4
 * This controller shows an area that's only visible for logged in users (because of Auth::checkAuthentication(); in line 16)
5
 */
6
class DashboardController extends Controller
7
{
8
    /**
9
     * Construct this object by extending the basic Controller class
10
     */
11
    public function __construct()
12
    {
13
        parent::__construct();
14
15
        // this entire controller should only be visible/usable by logged in users, so we put authentication-check here
16
        Auth::checkAuthentication();
17
    }
18
19
    /**
20
     * This method controls what happens when you move to /dashboard/index in your app.
21
     */
22
    public function index()
23
    {
24
        $this->View->render('dashboard/index');
25
    }
26
}
27