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

BootstrapCreator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 90.91%

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 20
ccs 10
cts 11
cp 0.9091
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A createTargetFileObject() 0 16 2
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Tests;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\AbstractCreator;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Filesystem\File;
7
8
class BootstrapCreator extends AbstractCreator
9
{
10
    public const TEMPLATE_PATH = self::ROOT_TEMPLATE_PATH . '/tests/bootstrap.php';
11
12 1
    public function createTargetFileObject(?string $newObjectFqn = null): AbstractCreator
13
    {
14 1
        if (null !== $newObjectFqn) {
15
            throw new \RuntimeException('You should not pass a new object FQN to this creator');
16
        }
17 1
        $this->templateFile = $this->fileFactory->createFromExistingPath(static::TEMPLATE_PATH);
18 1
        $this->targetFile   = new File(
19 1
            \str_replace(
20 1
                self::ROOT_TEMPLATE_PATH,
21 1
                $this->projectRootDirectory,
22 1
                static::TEMPLATE_PATH
23
            )
24
        );
25 1
        $this->setTargetContentsWithTemplateContents();
26
27 1
        return $this;
28
    }
29
}
30