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 (#101)
by joseph
18:59
created

AbstractLargeTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 16
dl 0
loc 41
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setupCopiedWorkDirAndCreateDatabase() 0 8 1
A setupCopiedWorkDir() 0 10 1
A getEntitySaver() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Assets;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command\AbstractCommand;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Generator\AbstractGenerator;
7
use EdmondsCommerce\DoctrineStaticMeta\Entity\Savers\EntitySaver;
8
use EdmondsCommerce\DoctrineStaticMeta\Entity\Savers\EntitySaverInterface;
9
use EdmondsCommerce\DoctrineStaticMeta\Schema\Database;
10
use EdmondsCommerce\DoctrineStaticMeta\Schema\Schema;
11
use EdmondsCommerce\DoctrineStaticMeta\Tests\Large\Exception;
0 ignored issues
show
Bug introduced by
The type EdmondsCommerce\Doctrine...a\Tests\Large\Exception was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
13
abstract class AbstractLargeTest extends AbstractTest
14
{
15
    public const TEST_TYPE_MEDIUM = 'Large';
16
17
    public const TEST_PROJECT_ROOT_NAMESPACE = 'My\\LargeTest\\Project';
18
19
    protected function setupCopiedWorkDirAndCreateDatabase(): void
20
    {
21
        $this->setupCopiedWorkDir();
22
        $database = $this->container->get(Database::class);
23
        $database->drop(true);
24
        $database->create(true);
25
        $schema = $this->container->get(Schema::class);
26
        $schema->create();
27
    }
28
29
    /**
30
     * @return string
31
     * @throws Exception\ConfigException
32
     * @throws Exception\DoctrineStaticMetaException
33
     * @throws \ReflectionException
34
     */
35
    protected function setupCopiedWorkDir(): string
36
    {
37
        $copiedWorkDir = parent::setupCopiedWorkDir();
38
        $this->setupContainer(
39
            $copiedWorkDir
40
            . '/' . AbstractCommand::DEFAULT_SRC_SUBFOLDER
41
            . '/' . AbstractGenerator::ENTITIES_FOLDER_NAME
42
        );
43
44
        return $copiedWorkDir;
45
    }
46
47
    /**
48
     * @return EntitySaverInterface
49
     * @throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException
50
     */
51
    protected function getEntitySaver(): EntitySaverInterface
52
    {
53
        return $this->container->get(EntitySaver::class);
54
    }
55
}
56