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 ( 6592ea...1bf5ed )
by joseph
31s queued 13s
created

Pipeline::run()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Process;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Filesystem\Factory\FindReplaceFactory;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Filesystem\File;
7
8
class Pipeline
9
{
10
    /**
11
     * @var FindReplaceFactory
12
     */
13
    protected $findReplaceFactory;
14
    /**
15
     * @var array|ProcessInterface[]
16
     */
17
    private $processes = [];
18
19 2
    public function __construct(FindReplaceFactory $findReplaceFactory)
20
    {
21 2
        $this->findReplaceFactory = $findReplaceFactory;
22 2
    }
23
24 2
    public function register(ProcessInterface $process): self
25
    {
26 2
        $this->processes[] = $process;
27
28 2
        return $this;
29
    }
30
31 1
    public function run(File $file)
32
    {
33 1
        $findReplace = $this->findReplaceFactory->create($file);
34 1
        foreach ($this->processes as $process) {
35 1
            $process->run($findReplace);
36
        }
37 1
    }
38
}
39