Passed
Push — master ( 10fbad...ef7757 )
by Melech
01:59
created

ComponentProvider::getCliControllers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Valkyrja\Cli\Routing\Provider;
15
16
use Override;
0 ignored issues
show
Bug introduced by
The type Override 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...
17
use Valkyrja\Application\Provider\Provider as AppComponent;
18
use Valkyrja\Cli\Command\HelpCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Cli\Command\HelpCommand 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...
19
use Valkyrja\Cli\Command\ListBashCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Cli\Command\ListBashCommand 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...
20
use Valkyrja\Cli\Command\ListCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Cli\Command\ListCommand 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...
21
use Valkyrja\Cli\Command\VersionCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Cli\Command\VersionCommand 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...
22
23
/**
24
 * Final Class Component.
25
 *
26
 * @author Melech Mizrachi
27
 */
28
class ComponentProvider extends AppComponent
29
{
30
    /**
31
     * @inheritDoc
32
     */
33
    #[Override]
34
    public static function getContainerProviders(): array
35
    {
36
        return [
37
            ServiceProvider::class,
38
        ];
39
    }
40
41
    /**
42
     * @inheritDoc
43
     */
44
    #[Override]
45
    public static function getCliControllers(): array
46
    {
47
        return [
48
            HelpCommand::class,
49
            ListBashCommand::class,
50
            ListCommand::class,
51
            VersionCommand::class,
52
        ];
53
    }
54
}
55