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 (#178)
by joseph
127:53 queued 124:55
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 declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Process;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Filesystem\File;
6
7
class ReplaceNameProcess implements ProcessInterface
8
{
9
10
    /**
11
     * @var string
12
     */
13
    protected $findName;
14
    /**
15
     * @var string
16
     */
17
    protected $newObjectBaseName;
18
19
    public function setArgs(string $findName, string $newObjectBaseName)
20
    {
21
22
        $this->findName          = $findName;
23
        $this->newObjectBaseName = $newObjectBaseName;
24
25
        return $this;
26
    }
27
28
    public function run(File\FindReplace $findReplace): void
29
    {
30
        $findReplace->findReplaceName(
31
            $this->findName,
32
            $this->newObjectBaseName
33
        );
34
    }
35
}
36