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

Update   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 2 1
A updateConfig() 0 4 1
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
}