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.
Passed
Pull Request — master (#2037)
by Elan
02:09
created

Helper::getManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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