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.
Passed
Push — master ( d17a44...e59319 )
by SignpostMarv
06:30
created

TypeCertainty::EnsureArgumentIsString()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 3

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 13
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
cc 3
nc 2
nop 1
crap 3
1
<?php
2
/**
3
* @author SignpostMarv
4
*/
5
declare(strict_types=1);
6
7
namespace SignpostMarv\DaftObject;
8
9
class TypeCertainty
10
{
11
    const INDEX_FIRST_ARG = 1;
12
13
    const BOOL_VAR_EXPORT_RETURN = true;
14
15
    /**
16
    * @param mixed $maybe
17
    */
18 8
    public static function VarExportNonScalars($maybe) : string
19
    {
20 8
        if (is_string($maybe)) {
21 4
            return $maybe;
22
        }
23
24
        return
25 8
            is_scalar($maybe)
26 8
                ? (string) $maybe
27 8
                : var_export($maybe, self::BOOL_VAR_EXPORT_RETURN);
28
    }
29
}
30