Test Failed
Push — 1.0.x ( be34fd...48f1ab )
by Koldo
06:32 queued 04:07
created

ConfigProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pheature\Crud\Psr11\Toggle\Container;
6
7
use Pheature\Community\Mezzio\ToggleConfigFactory;
0 ignored issues
show
Bug introduced by
The type Pheature\Community\Mezzio\ToggleConfigFactory 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...
8
use Pheature\Crud\Psr11\Toggle\ToggleConfig;
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
                    ToggleConfig::class => ToggleConfigFactory::class,
21
                ],
22
            ],
23
        ];
24
    }
25
}
26