Completed
Pull Request — dev (#11)
by
unknown
05:09
created

test_global_function_overrides.php ➔ function_exists()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 2
eloc 7
c 1
b 1
f 0
nc 2
nop 1
dl 0
loc 12
rs 9.4285
1
<?php
2
3
namespace Vectorface\SnappyRouter;
4
5
function function_exists($class)
6
{
7
    $blacklist = array(
8
        '\http_response_code' => 0
9
    );
10
11
    if (in_array($class, $blacklist)) {
12
        return false;
13
    } else {
14
        return \function_exists($class);
15
    }
16
}
17