Total Complexity | 3 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 88.24% |
Changes | 0 |
1 | <?php |
||
25 | class AmqpTransport extends AbstractTransport |
||
26 | { |
||
27 | /** |
||
28 | * @var AMQPExchange $exchange |
||
29 | */ |
||
30 | protected $exchange; |
||
31 | |||
32 | /** |
||
33 | * @var AMQPQueue $exchange |
||
34 | */ |
||
35 | protected $queue; |
||
36 | |||
37 | /** |
||
38 | * @param AMQPExchange $exchange |
||
39 | * @param AMQPQueue $queue |
||
40 | */ |
||
41 | 4 | public function __construct(AMQPExchange $exchange, AMQPQueue $queue) |
|
42 | { |
||
43 | 4 | $this->queue = $queue; |
|
|
|||
44 | 4 | $this->exchange = $exchange; |
|
45 | 4 | $this->messageEncoder = new DefaultEncoder(); |
|
46 | 4 | } |
|
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | 1 | public function send(Message $message) |
|
71 | } |
||
72 | } |
||
73 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.