Passed
Push — master ( 043752...2a5ce0 )
by Alxarafe
27:58
created

Index::dashboard()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
/* Copyright (C) 2019       Alxarafe                    <[email protected]>
3
 *
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
 */
17
namespace Alixar\Controllers;
18
19
use Alxarafe\Helpers\Skin;
20
use Alxarafe\Helpers\Schema;
21
use Alixar\Base\AlixarController;
22
use Alixar\Views\IndexView;
23
24
/**
25
 * This class contains the methods and attributes specific to the index
26
 * controller (before home)
27
 *
28
 * @author Alxarafe
29
 */
30
class Index extends AlixarController
31
{
32
33
    public function __construct()
34
    {
35
        Skin::$view = new IndexView($this);
36
        parent::__construct();
37
    }
38
39
    public function dashboard()
40
    {
41
42
    }
43
44
    public function database()
45
    {
46
        Schema::saveStructure();
47
    }
48
}
49