Test Failed
Push — 1.0.x ( b0e222...2554af )
by Koldo
11:42 queued 09:11
created

ConfigProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pheature\Model\Toggle\Container;
6
7
use Pheature\Model\Toggle\SegmentFactory;
8
use Pheature\Model\Toggle\StrategyFactory;
9
10
final class ConfigProvider
11
{
12
    /**
13
     * @return array<string, array<string, array<string, string>>>
14
     */
15
    public function __invoke(): array
16
    {
17
        return [
18
            'dependencies' => [
19
                'factories' => [
20
                    StrategyFactory::class => \Pheature\Crud\Psr11\Toggle\StrategyFactory::class,
0 ignored issues
show
Bug introduced by
The type Pheature\Crud\Psr11\Toggle\StrategyFactory 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
                    SegmentFactory::class => \Pheature\Crud\Psr11\Toggle\SegmentFactory::class,
0 ignored issues
show
Bug introduced by
The type Pheature\Crud\Psr11\Toggle\SegmentFactory 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
        ];
25
    }
26
}
27