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.
Completed
Push — master ( 02c3d0...374f40 )
by Anton
02:13
created

GroupTask::getTasks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 0
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
class GroupTask extends Task
11
{
12
    /**
13
     * List of tasks.
14
     * @var array
15 4
     */
16
    private $group;
17
18 4
    /**
19
     * @param string $name Tasks name
20
     * @param string $group
21
     */
22
    public function __construct($name, $group)
23 1
    {
24
        parent::__construct($name);
25 1
        $this->group = $group;
0 ignored issues
show
Documentation Bug introduced by
It seems like $group of type string is incompatible with the declared type array of property $group.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function run(Context $context)
32
    {
33
        throw new \RuntimeException('Group task should never be running.');
34
    }
35
36
    /**
37
     *
38
     */
39
    public function getTasks()
40
    {
41
        return array_merge($this->getBefore(), $this->group, $this->getAfter());
42
    }
43
}
44