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 (#214)
by joseph
21:10
created

FindReplaceProcess::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 1
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\File;
6
7
/**
8
 * Very simple find/replace process
9
 */
10
class FindReplaceProcess implements ProcessInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    private $find;
16
    /**
17
     * @var string
18
     */
19
    private $replace;
20
21
    /**
22
     * @param string $find
23
     * @param string $replace
24
     */
25
    public function __construct(string $find, string $replace)
26
    {
27
        $this->find    = $find;
28
        $this->replace = $replace;
29
    }
30
31
    public function run(File\FindReplace $findReplace): void
32
    {
33
        $findReplace->findReplace($this->find, $this->replace);
34
    }
35
}
36