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.

Helper::getManager()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 1
dl 0
loc 3
c 0
b 0
f 0
cc 1
rs 10
ccs 0
cts 0
cp 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Deployer\Component\PharUpdate\Console;
6
7
use Deployer\Component\PharUpdate\Manager;
8
use Deployer\Component\PharUpdate\Manifest;
9
use Symfony\Component\Console\Helper\Helper as Base;
10
11
/**
12
 * The helper provides a Manager factory.
13
 *
14
 * @author Kevin Herrera <[email protected]>
15
 */
16
class Helper extends Base
17
{
18
    /**
19
     * Returns the update manager.
20
     *
21
     * @param string $uri The manifest file URI.
22
     *
23
     * @return Manager The update manager.
24
     */
25
    public function getManager(string $uri): Manager
26
    {
27
        return new Manager(Manifest::loadFile($uri));
28
    }
29
30
    public function getName(): string
31
    {
32
        return 'phar-update';
33
    }
34
}
35