Code Duplication    Length = 24-26 lines in 3 locations

Connection/CmobiAMQPChannel.php 3 locations

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