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.

ParamCollection::get()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 1
nc 2
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lib\Http;
6
7
class ParamCollection
8
{
9
    // @codeCoverageIgnoreStart
10
    protected $parameters;
11
12
    public function __construct(array $params = [])
13
    {
14
        $this->parameters = $params;
15
    }
16
17
    public function all()
18
    {
19
        return $this->parameters;
20
    }
21
22
    public function keys()
23
    {
24
        return array_keys($this->parameters);
25
    }
26
27
    public function get($key, $default = null)
28
    {
29
        return array_key_exists($key, $this->parameters) ? $this->parameters[$key] : $default;
30
    }
31
32
    public function has($key)
33
    {
34
        return array_key_exists($key, $this->parameters);
35
    }
36
37
    public function set($key, $value)
38
    {
39
        $this->parameters[$key] = $value;
40
    }
41
42
    // @codeCoverageIgnoreEnd
43
}
44