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.
Passed
Pull Request — master (#152)
by joseph
15:36
created

CliConfigCommandFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 35
ccs 0
cts 20
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommands() 0 16 1
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Command;
4
5
use Psr\Container\ContainerInterface;
6
7
/**
8
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
9
 */
10
class CliConfigCommandFactory
11
{
12
    /**
13
     * @var ContainerInterface
14
     */
15
    private $container;
16
17
    public function __construct(ContainerInterface $container)
18
    {
19
        $this->container = $container;
20
    }
21
22
    /**
23
     * For use in your project's cli-config.php file
24
     *
25
     * @see /cli-config.php
26
     *
27
     * @return array
28
     */
29
    public function getCommands(): array
30
    {
31
        return [
32
            $this->container->get(GenerateRelationsCommand::class),
33
            $this->container->get(GenerateEntityCommand::class),
34
            $this->container->get(SetRelationCommand::class),
35
            $this->container->get(GenerateFieldCommand::class),
36
            $this->container->get(SetFieldCommand::class),
37
            $this->container->get(SetEmbeddableCommand::class),
38
            $this->container->get(GenerateEmbeddableFromArchetypeCommand::class),
39
            $this->container->get(RemoveUnusedRelationsCommand::class),
40
            $this->container->get(OverrideCreateCommand::class),
41
            $this->container->get(OverridesUpdateCommand::class),
42
            $this->container->get(CreateConstraintCommand::class),
43
            $this->container->get(FinaliseBuildCommand::class),
44
            $this->container->get(CreateConstraintCommand::class),
45
        ];
46
    }
47
}
48