Passed
Push — master ( 964caf...10fbad )
by Melech
02:02 queued 33s
created

ComponentProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getContainerProviders() 0 5 1
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\Http\Server\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\Http\Server\Provider\ServiceProvider as ServerServiceProvider;
19
20
/**
21
 * Final Class Component.
22
 *
23
 * @author Melech Mizrachi
24
 */
25
class ComponentProvider extends AppComponent
26
{
27
    /**
28
     * @inheritDoc
29
     */
30
    #[Override]
31
    public static function getContainerProviders(): array
32
    {
33
        return [
34
            ServerServiceProvider::class,
35
        ];
36
    }
37
}
38