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 27
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 27
c 1
b 0
f 0
rs 10
ccs 0
cts 7
cp 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getManager() 0 3 1
A getName() 0 3 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;
0 ignored issues
show
introduced by
The private property $manager is not used, and could be removed.
Loading history...
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
}