Code Duplication    Length = 7-7 lines in 2 locations

src/Gateways/Alipay/RefundGateway.php 1 location

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

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.