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 ( bd31e6...0da9d4 )
by Benjamin
02:49
created

Connection::createParams()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 18
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 13
CRAP Score 4

Importance

Changes 0
Metric Value
cc 4
eloc 12
nc 4
nop 1
dl 0
loc 18
ccs 13
cts 13
cp 1
crap 4
rs 9.8666
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lib\DB\DBAL;
6
7
use Lib\DB\DBAL\Configurator\ConfiguratorInterface;
8
use Lib\DB\DBAL\Connection\ConnectionInterface;
9
use Lib\DB\DBAL\Driver\DriverInterface;
10
11
class Connection
12
{
13
    /** @var DriverInterface */
14
    private $driver;
15
16
    /** @var ConnectionInterface */
17
    private $conn;
18
19
    /** @var bool */
20
    private $isConnected = false;
21
22
    public function __construct(ConfiguratorInterface $configurator, DriverInterface $driver)
23 1
    {
24
        [$params, $username, $password] = $configurator->getParams();
25 1
        $this->driver = $driver;
26 1
        $this->conn = $this->driver->connect($params, $username, $password);
27 1
        $this->isConnected = true;
28 1
    }
29
}
30