Completed
Push — master ( 2de6ce...a9a146 )
by Jean
02:33
created

spl_object_id()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
function type_exists($type_name)
4
{
5
    return in_array($type_name, [
6
        "boolean", 
7
        "integer", 
8
        "double", 
9
        "string", 
10
        "array", 
11
        "object", 
12
        "resource", 
13
        "resource (closed)", 
14
        "NULL", 
15
        "unknown type"
16
    ]);
17
}
18