GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 01765c...2026ee )
by Matthew
11s
created

get_std_env()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sphpeme;
4
5
/**
6
 * Parse the given value as its scalar type
7
 *
8
 * @param $val
9
 * @return mixed
10
 */
11
function atom($val)
12
{
13
    if (is_numeric($val)) {
14
        return new Scalar(strpos($val, '.')
15
            ? (float)$val
16
            : (int)$val);
17
    }
18
19
    if (strpos($val, '"') === 0) {
20
        return new Scalar(str_replace('"', '', $val));
21
    }
22
23
    if (\is_bool($val)) {
24
        return new Scalar($val);
25
    }
26
27
    return Symbol::make($val);
28
}
29