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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 29
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

2 Methods

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