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.
Test Failed
Push — master ( f90a6a...460bda )
by Marios
15:29
created

underscore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 2
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
use Underscore\Underscore;
5
6
/**
7
 * Shortcut alias to creating an Underscore object
8
 *
9
 * @param mixed $type A scalar type to wrap
10
 *
11
 * @return Underscore
12
 */
13
if ( ! function_exists('underscore')) {
14
    /**
15
     * @param $type
16
     *
17
     * @return Underscore
18
     */
19
    function underscore($type)
20
    {
21
        return new Underscore($type);
22
    }
23
}
24
25
/**
26
 * Shortcut alias for underscore()
27
 *
28
 * @param mixed $type
29
 *
30
 * @return Underscore
31
 */
32
if (!function_exists('__')) {
33
    /**
34
     * @param $type
35
     *
36
     * @return Underscore
37
     */
38
    function __($type)
39
    {
40
        return underscore($type);
41
    }
42
}
43