Passed
Push — master ( 7c7732...5d308c )
by Stone
03:35
created

Debug   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A dump() 0 6 1
1
<?php
2
3
namespace Core\Modules;
4
5
use Core\Constant;
6
use \Core\Container;
7
8
class Debug extends Module{
9
10
    /**
11
     * Var dump a var
12
     * @param $string
13
     */
14
    public function dump($var)
15
    {
16
        echo ("<pre>");
17
        var_dump($var);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($var) looks like debug code. Are you sure you do not want to remove it?
Loading history...
18
        echo ("</pre>");
19
        die();
20
    }
21
}