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.

BrowscapFull::__construct()   A
last analyzed

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 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
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
/**
7
 * Abstraction for Browscap full type
8
 *
9
 * @author Martin Keckeis <[email protected]>
10
 * @license MIT
11
 * @see https://github.com/browscap/browscap-php
12
 */
13
class BrowscapFull extends AbstractBrowscap
14
{
15
    /**
16
     * Name of the provider
17
     *
18
     * @var string
19
     */
20
    protected $name = 'BrowscapFull';
21
22
    protected $detectionCapabilities = [
23
24
        'browser' => [
25
            'name'    => true,
26
            'version' => true,
27
        ],
28
29
        'renderingEngine' => [
30
            'name'    => true,
31
            'version' => true,
32
        ],
33
34
        'operatingSystem' => [
35
            'name'    => true,
36
            'version' => true,
37
        ],
38
39
        'device' => [
40
            'model'    => true,
41
            'brand'    => true,
42
            'type'     => true,
43
            'isMobile' => true,
44
            'isTouch'  => true,
45
        ],
46
47
        'bot' => [
48
            'isBot' => true,
49
            'name'  => true,
50
            'type'  => true,
51
        ],
52
    ];
53
54 2
    public function __construct(Browscap $parser)
55
    {
56 2
        parent::__construct($parser, 'FULL');
57 2
    }
58
}
59