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
Push — master ( 75bdf9...8faa57 )
by joseph
83:56 queued 81:04
created

createTargetFileObject()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2.032

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 8
ccs 4
cts 5
cp 0.8
crap 2.032
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Tests\Entities;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\AbstractCreator;
6
7
class AbstractEntityTestCreator extends AbstractCreator
8
{
9
    public const TEMPLATE_PATH = self::ROOT_TEMPLATE_PATH . '/tests/Entities/AbstractEntityTest.php';
10
11 1
    public function createTargetFileObject(?string $newObjectFqn = null): AbstractCreator
12
    {
13 1
        if (null !== $newObjectFqn) {
14
            throw new \RuntimeException('You should not pass a new object FQN to this creator');
15
        }
16 1
        $newObjectFqn = $this->projectRootNamespace . '\\Entities\\AbstractEntityTest';
17
18 1
        return parent::createTargetFileObject($newObjectFqn);
19
    }
20
}
21