Test Failed
Push — master ( 1a6b60...537cfd )
by Mike
03:18
created

EventExchange::declareExchange()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
4
namespace Xervice\EventRabbitMq\Communication\Plugin\Queue;
5
6
7
use Xervice\Core\Locator\AbstractWithLocator;
0 ignored issues
show
Bug introduced by
The type Xervice\Core\Locator\AbstractWithLocator 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 Xervice\RabbitMQ\Core\ExchangeProviderInterface;
0 ignored issues
show
Bug introduced by
The type Xervice\RabbitMQ\Core\ExchangeProviderInterface 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...
9
use Xervice\RabbitMQ\Exchange\ExchangeInterface;
0 ignored issues
show
Bug introduced by
The type Xervice\RabbitMQ\Exchange\ExchangeInterface 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...
10
11
/**
12
 * @method \Xervice\EventRabbitMq\EventRabbitMqFactory getFactory()
13
 */
14
class EventExchange extends AbstractWithLocator implements ExchangeInterface
15
{
16
    /**
17
     * @param \Xervice\RabbitMQ\Core\ExchangeProviderInterface $exchangeProvider
18
     *
19
     * @throws \Core\Locator\Dynamic\ServiceNotParseable
20
     */
21
    public function declareExchange(ExchangeProviderInterface $exchangeProvider)
22
    {
23
        $exchangeProvider->declare(
24
            $this->getFactory()->createEventExchange()
25
        );
26
    }
27
}