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::createTargetFileObject()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 16
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 2.003

Importance

Changes 0
Metric Value
cc 2
eloc 10
nc 2
nop 1
dl 0
loc 16
ccs 10
cts 11
cp 0.9091
crap 2.003
rs 9.9332
c 0
b 0
f 0
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