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

setupCopiedWorkDirAndCreateDatabase()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
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