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.

ClientAppAuth::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Speicher210\Estimote;
6
7
use GuzzleHttp\Client;
8
use Speicher210\Estimote\Auth\Application;
9
use function GuzzleHttp\default_user_agent;
10
11
class ClientAppAuth extends Client
12
{
13
    /**
14
     * @param Application $authorization The application authorization.
15
     */
16
    public function __construct(Application $authorization)
17
    {
18
        parent::__construct(
19
            [
20
                'base_uri' => 'https://cloud.estimote.com/',
21
                'auth' => [$authorization->id(), $authorization->token()],
22
                'headers' => [
23
                    'Accept' => 'application/json',
24
                    'User-Agent' => 'Speicher210/Estimote ' . default_user_agent()
25
                ]
26
            ]
27
        );
28
    }
29
}
30