Passed
Push — Auth ( 474bc2...620889 )
by Stone
02:11
created

Debug::dump()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
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();
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...
20
    }
21
}