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

ConfigProvider::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 5
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
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