Code Duplication    Length = 8-8 lines in 2 locations

src/Payment/API.php 2 locations

@@ 143-150 (lines=8) @@
140
     *
141
     * @return \EasyWeChat\Support\Collection
142
     */
143
    public function query($orderNo, $type = self::OUT_TRADE_NO)
144
    {
145
        $params = [
146
            $type => $orderNo,
147
        ];
148
149
        return $this->request($this->wrapApi(self::API_QUERY), $params);
150
    }
151
152
    /**
153
     * Query order by transaction_id.
@@ 280-287 (lines=8) @@
277
     *
278
     * @return \EasyWeChat\Support\Collection
279
     */
280
    public function queryRefund($orderNo, $type = self::OUT_TRADE_NO)
281
    {
282
        $params = [
283
            $type => $orderNo,
284
        ];
285
286
        return $this->request($this->wrapApi(self::API_QUERY_REFUND), $params);
287
    }
288
289
    /**
290
     * Query refund status by out_refund_no.