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

EventQueue::declareQueue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
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\QueueProviderInterface;
0 ignored issues
show
Bug introduced by
The type Xervice\RabbitMQ\Core\QueueProviderInterface 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\Queue\QueueInterface;
0 ignored issues
show
Bug introduced by
The type Xervice\RabbitMQ\Queue\QueueInterface 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 EventQueue extends AbstractWithLocator implements QueueInterface
15
{
16
    /**
17
     * @param \Xervice\RabbitMQ\Core\QueueProviderInterface $queueProvider
18
     *
19
     * @throws \Core\Locator\Dynamic\ServiceNotParseable
20
     */
21
    public function declareQueue(QueueProviderInterface $queueProvider)
22
    {
23
        $queueProvider->declare(
24
            $this->getFactory()->createEventQueue()
25
        );
26
27
        $queueProvider->bind(
28
            $this->getFactory()->createBindQueue()
29
        );
30
    }
31
32
}