Code Duplication    Length = 8-8 lines in 2 locations

src/Gateways/Wechat/RefundGateway.php 1 location

@@ 16-23 (lines=8) @@
13
     *
14
     * @return array
15
     */
16
    public function find($order): array
17
    {
18
        return [
19
            'endpoint' => 'pay/refundquery',
20
            'order'    => is_array($order) ? $order : ['out_trade_no' => $order],
21
            'cert'     => false
22
        ];
23
    }
24
}
25

src/Gateways/Wechat/WapGateway.php 1 location

@@ 50-57 (lines=8) @@
47
     *
48
     * @return array
49
     */
50
    public function find($order): array
51
    {
52
        return [
53
            'endpoint' => 'pay/orderquery',
54
            'order'    => is_array($order) ? $order : ['out_trade_no' => $order],
55
            'cert'     => false
56
        ];
57
    }
58
59
    /**
60
     * Get trade type config.