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 ( 65539f...8ccec6 )
by Martin
9s
created

BrowscapLite::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace UserAgentParser\Provider;
3
4
use BrowscapPHP\Browscap;
5
6
class BrowscapLite extends AbstractBrowscap
7
{
8
    /**
9
     * Name of the provider
10
     *
11
     * @var string
12
     */
13
    protected $name = 'BrowscapLite';
14
15
    protected $detectionCapabilities = [
16
17
        'browser' => [
18
            'name'    => true,
19
            'version' => true,
20
        ],
21
22
        'renderingEngine' => [
23
            'name'    => false,
24
            'version' => false,
25
        ],
26
27
        'operatingSystem' => [
28
            'name'    => true,
29
            'version' => false,
30
        ],
31
32
        'device' => [
33
            'model'    => false,
34
            'brand'    => false,
35
            'type'     => true,
36
            'isMobile' => true,
37
            'isTouch'  => false,
38
        ],
39
40
        'bot' => [
41
            'isBot' => false,
42
            'name'  => false,
43
            'type'  => false,
44
        ],
45
    ];
46
47 2
    public function __construct(Browscap $parser)
48
    {
49 2
        parent::__construct($parser, 'LITE');
50 2
    }
51
}
52