Code Duplication    Length = 24-26 lines in 3 locations

Connection/CmobiAMQPChannel.php 3 locations

@@ 14-37 (lines=24) @@
11
     *
12
     * @return mixed|null
13
     */
14
    public function queueDeclare(array $params)
15
    {
16
        list(
17
            $queue,
18
            $passive,
19
            $durable,
20
            $exclusive,
21
            $auto_delete,
22
            $nowait,
23
            $arguments,
24
            $ticket
25
            ) = $params;
26
27
        return parent::queue_declare(
28
            $queue,
29
            $passive,
30
            $durable,
31
            $exclusive,
32
            $auto_delete,
33
            $nowait,
34
            $arguments,
35
            $ticket
36
        );
37
    }
38
39
    /**
40
     * @param array $params
@@ 45-69 (lines=25) @@
42
     *
43
     * @return mixed|string
44
     */
45
    public function basicConsume(array $params, $callback)
46
    {
47
        list(
48
            $queue,
49
            $consumer_tag,
50
            $no_local,
51
            $no_ack,
52
            $exclusive,
53
            $nowait,
54
            $ticket,
55
            $arguments
56
            ) = $params;
57
58
        return parent::basic_consume(
59
            $queue,
60
            $consumer_tag,
61
            $no_local,
62
            $no_ack,
63
            $exclusive,
64
            $nowait,
65
            $callback,
66
            $ticket,
67
            $arguments
68
        );
69
    }
70
71
    /**
72
     * @param array $params
@@ 76-101 (lines=26) @@
73
     *
74
     * @return mixed|null
75
     */
76
    public function exchangeDeclare(array $params)
77
    {
78
        list(
79
        $exchange,
80
        $type,
81
        $passive,
82
        $durable,
83
        $autoDelete,
84
        $internal,
85
        $nowait,
86
        $arguments,
87
        $ticket
88
        ) = $params;
89
90
        return parent::exchange_declare(
91
            $exchange,
92
            $type,
93
            $passive,
94
            $durable,
95
            $autoDelete,
96
            $internal,
97
            $nowait,
98
            $arguments,
99
            $ticket
100
        );
101
    }
102
}
103