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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 17
rs 10
ccs 0
cts 4
cp 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getManager() 0 3 1
A getName() 0 3 1
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