debug()   A
last analyzed

Complexity

Conditions 1
Paths 0

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 4
nc 0
nop 1
dl 0
loc 6
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
c 1
b 1
f 0
1
<?php
2
function esc($var)
3
{
4
    return htmlentities($var);
5
}
6
7
/**
8
 * @SuppressWarnings("PHPMD")
9
 */
10
function debug($var)
11
{
12
    echo "<pre>";
13
    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...
14
    echo "</pre>";
15
    exit;
16
}
17