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
Push — master ( 8b5091...c51706 )
by Anton
01:50
created

GroupTask::local()   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 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Task;
9
10
use Deployer\Exception\Exception;
11
12
class GroupTask extends Task
13
{
14
    /**
15
     * List of tasks
16
     *
17
     * @var array
18
     */
19
    private $group;
20
21
    /**
22
     * @param string $name
23
     * @param array $group
24
     */
25 14
    public function __construct($name, $group)
26
    {
27 14
        parent::__construct($name);
28 14
        $this->group = $group;
29 14
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34 1
    public function run(Context $context)
35
    {
36 1
        throw new \RuntimeException("Can't run group task.");
37
    }
38
39
    /**
40
     * List of dependent tasks names
41
     *
42
     * @return array
43
     */
44 6
    public function getGroup()
45
    {
46 6
        return $this->group;
47
    }
48
49
    public function local()
50
    {
51
        throw new Exception('Group tasks can\'t be local.');
52
    }
53
}
54