Passed
Push — master ( 7cec3c...dccb02 )
by Mike
03:24
created

ConfiguratorBusinessFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createConfigurator() 0 3 1
1
<?php declare(strict_types=1);
2
3
4
namespace Xervice\Configurator\Business;
5
6
7
8
use Xervice\Configurator\Business\Model\Engine\Configurator;
9
use Xervice\Configurator\Business\Model\Engine\ConfiguratorInterface;
10
use Xervice\Configurator\Business\Model\Step\StepCollection;
11
use Xervice\Core\Business\Model\Factory\AbstractBusinessFactory;
12
13
class ConfiguratorBusinessFactory extends AbstractBusinessFactory
14
{
15
    /**
16
     * @param \Xervice\Configurator\Business\Step\StepCollection $stepCollection
0 ignored issues
show
Bug introduced by
The type Xervice\Configurator\Business\Step\StepCollection 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
     *
18
     * @return \Xervice\Configurator\Business\Engine\ConfiguratorInterface
0 ignored issues
show
Bug introduced by
The type Xervice\Configurator\Bus...e\ConfiguratorInterface 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
     */
20 2
    public function createConfigurator(StepCollection $stepCollection): ConfiguratorInterface
21
    {
22 2
        return new Configurator($stepCollection);
0 ignored issues
show
Bug Best Practice introduced by
The expression return new Xervice\Confi...urator($stepCollection) returns the type Xervice\Configurator\Bus...del\Engine\Configurator which is incompatible with the documented return type Xervice\Configurator\Bus...e\ConfiguratorInterface.
Loading history...
23
    }
24
}