Code Duplication    Length = 7-7 lines in 2 locations

src/Gateways/Alipay/RefundGateway.php 1 location

@@ 20-26 (lines=7) @@
17
     *
18
     * @return array
19
     */
20
    public function find($order): array
21
    {
22
        return [
23
            'method' => 'alipay.trade.fastpay.refund.query',
24
            'biz_content' => json_encode(is_array($order) ? $order : ['out_trade_no' => $order])
25
        ];
26
    }
27
}
28

src/Gateways/Alipay/WebGateway.php 1 location

@@ 52-58 (lines=7) @@
49
     *
50
     * @return array
51
     */
52
    public function find($order): array
53
    {
54
        return [
55
            'method' => 'alipay.trade.query',
56
            'biz_content' => json_encode(is_array($order) ? $order : ['out_trade_no' => $order])
57
        ];
58
    }
59
60
    /**
61
     * Build Html response.