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.
Passed
Pull Request — master (#192)
by joseph
40:19
created

AbstractEntityRepositoryCreator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 13
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A createTargetFileObject() 0 8 2
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Src\Entity\Repositories;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\AbstractCreator;
6
7
class AbstractEntityRepositoryCreator extends AbstractCreator
8
{
9
    public const FIND_NAME     = 'AbstractEntityRepository';
10
    public const TEMPLATE_PATH = self::ROOT_TEMPLATE_PATH . '/src/Entity/Repositories/' . self::FIND_NAME . '.php';
11
12
    public function createTargetFileObject(?string $newObjectFqn = null): AbstractCreator
13
    {
14
        if (null !== $newObjectFqn) {
15
            throw new \RuntimeException('You should not pass a new object FQN to this creator');
16
        }
17
        $newObjectFqn = $this->projectRootNamespace . '\\Entity\\Repositories\\AbstractEntityRepository';
18
19
        return parent::createTargetFileObject($newObjectFqn);
20
    }
21
}
22