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 — develop ( 8a6344...962010 )
by Baptiste
02:40
created

All::__invoke()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 2
crap 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\LabStation\Trigger;
5
6
use Innmind\LabStation\{
7
    Trigger,
8
    Activity,
9
};
10
use Innmind\CLI\Environment;
11
12
final class All implements Trigger
13
{
14
    private $triggers;
15
16 4
    public function __construct(Trigger ...$triggers)
17
    {
18 4
        $this->triggers = $triggers;
19 4
    }
20
21 2
    public function __invoke(Activity $activity, Environment $env): void
22
    {
23 2
        foreach ($this->triggers as $trigger) {
24 2
            $trigger($activity, $env);
25
        }
26 2
    }
27
}
28