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 (#52)
by joseph
38:21 queued 34:31
created

AbstractFunctionalTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 28
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setupCopiedWorkDir() 0 8 1
A setupCopiedWorkDirAndCreateDatabase() 0 8 1
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command\AbstractCommand;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generator\AbstractGenerator;
7
use EdmondsCommerce\DoctrineStaticMeta\Schema\Database;
8
use EdmondsCommerce\DoctrineStaticMeta\Schema\Schema;
9
10
abstract class AbstractFunctionalTest extends AbstractIntegrationTest
11
{
12
    public const TEST_TYPE = 'functional';
13
14
    protected function setupCopiedWorkDirAndCreateDatabase()
15
    {
16
        $this->setupCopiedWorkDir();
17
        $database = $this->container->get(Database::class);
18
        $database->drop(true);
19
        $database->create(true);
20
        $schema = $this->container->get(Schema::class);
21
        $schema->create();
22
    }
23
24
    /**
25
     * @param string $extra
26
     *
27
     * @throws Exception\ConfigException
28
     * @throws Exception\DoctrineStaticMetaException
29
     */
30
    protected function setupCopiedWorkDir(string $extra = 'Copied'): void
31
    {
32
        parent::setupCopiedWorkDir($extra);
33
        $copiedWorkDir = rtrim(static::WORK_DIR, '/').$extra.'/';
34
        $this->setupContainer(
35
            $copiedWorkDir
36
            .'/'.AbstractCommand::DEFAULT_SRC_SUBFOLDER
37
            .'/'.AbstractGenerator::ENTITIES_FOLDER_NAME
38
        );
39
    }
40
}
41