Code Duplication    Length = 8-8 lines in 2 locations

src/Payment/API.php 2 locations

@@ 142-149 (lines=8) @@
139
     *
140
     * @return \EasyWeChat\Support\Collection
141
     */
142
    public function query($orderNo, $type = self::OUT_TRADE_NO)
143
    {
144
        $params = [
145
            $type => $orderNo,
146
        ];
147
148
        return $this->request($this->wrapApi(self::API_QUERY), $params);
149
    }
150
151
    /**
152
     * Query order by transaction_id.
@@ 272-279 (lines=8) @@
269
     *
270
     * @return \EasyWeChat\Support\Collection
271
     */
272
    public function queryRefund($orderNo, $type = self::OUT_TRADE_NO)
273
    {
274
        $params = [
275
            $type => $orderNo,
276
        ];
277
278
        return $this->request($this->wrapApi(self::API_QUERY_REFUND), $params);
279
    }
280
281
    /**
282
     * Query refund status by out_refund_no.