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::EnsureArgumentIsArray()   A

Complexity

Conditions 4
Paths 2

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 4

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
ccs 10
cts 10
cp 1
rs 9.9332
c 0
b 0
f 0
cc 4
nc 2
nop 3
crap 4
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