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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 24
ccs 0
cts 6
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
A __construct() 0 4 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
/**
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