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

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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