Code Duplication    Length = 8-8 lines in 2 locations

src/Gateways/Wechat/Gateway.php 1 location

@@ 85-92 (lines=8) @@
82
     *
83
     * @return array
84
     */
85
    public function find($order): array
86
    {
87
        return [
88
            'endpoint' => 'pay/orderquery',
89
            'order'    => is_array($order) ? $order : ['out_trade_no' => $order],
90
            'cert'     => false,
91
        ];
92
    }
93
}
94

src/Gateways/Wechat/RefundGateway.php 1 location

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