Passed
Push — Accessing-and-setting-the-site... ( 5c201f...c85d15 )
by Stone
03:06
created

Update::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace App\Controllers\Admin;
3
4
use Core\AdminController;
5
use Core\Container;
6
7
class Update extends AdminController {
8
9
10
    public function index(){
11
        echo'TEST';
12
    }
13
14
    public function updateConfig(){
15
        //$this->onlyAdmin();
16
        var_dump($_SESSION);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($_SESSION) looks like debug code. Are you sure you do not want to remove it?
Loading history...
17
        die();
1 ignored issue
show
Best Practice introduced by
Using exit here is not recommended.

In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.

Loading history...
18
    }
19
}