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 (#152)
by joseph
19:30
created

AddSettableUuidInterfaceProcess::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 1
dl 0
loc 9
ccs 0
cts 9
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Process\Src\Entity\Interfaces;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Process\ProcessInterface;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Filesystem\File;
7
use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\Interfaces\PrimaryKey\UuidPrimaryKeyInterface;
8
9
class AddSettableUuidInterfaceProcess implements ProcessInterface
10
{
11
    public function run(File\FindReplace $findReplace): void
12
    {
13
        $findReplace->findReplace(
14
            'use EdmondsCommerce\DoctrineStaticMeta\Entity as DSM;',
15
            "use EdmondsCommerce\DoctrineStaticMeta\Entity as DSM;\n" .
16
            'use ' . UuidPrimaryKeyInterface::class . ';'
17
        )->findReplace(
18
            '    DSM\Interfaces\EntityInterface',
19
            "    DSM\Interfaces\EntityInterface,\n    UuidPrimaryKeyInterface"
20
        );
21
    }
22
}
23