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::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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