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
Pull Request — master (#221)
by joseph
19:29
created

ReplaceNameProcess   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 26
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setArgs() 0 7 1
A run() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Process;
6
7
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Filesystem\File;
8
9
class ReplaceNameProcess implements ProcessInterface
10
{
11
12
    /**
13
     * @var string
14
     */
15
    protected $findName;
16
    /**
17
     * @var string
18
     */
19
    protected $newObjectBaseName;
20
21
    public function setArgs(string $findName, string $newObjectBaseName)
22
    {
23
24
        $this->findName          = $findName;
25
        $this->newObjectBaseName = $newObjectBaseName;
26
27
        return $this;
28
    }
29
30
    public function run(File\FindReplace $findReplace): void
31
    {
32
        $findReplace->findReplaceName(
33
            $this->findName,
34
            $this->newObjectBaseName
35
        );
36
    }
37
}
38