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

BrowscapPhp::parse()   B

Complexity

Conditions 3
Paths 3

Size

Total Lines 39
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 15
CRAP Score 3

Importance

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