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

Index   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A dashboard() 0 2 1
A database() 0 3 1
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