Code Duplication    Length = 8-8 lines in 2 locations

src/Payment/API.php 2 locations

@@ 126-133 (lines=8) @@
123
     *
124
     * @return \EasyWeChat\Support\Collection
125
     */
126
    public function query($orderNo, $type = self::OUT_TRADE_NO)
127
    {
128
        $params = [
129
            $type => $orderNo,
130
        ];
131
132
        return $this->request(self::API_ENDPOINT . $this->prefix . self::API_QUERY, $params);
133
    }
134
135
    /**
136
     * Query order by transaction_id.
@@ 256-263 (lines=8) @@
253
     *
254
     * @return \EasyWeChat\Support\Collection
255
     */
256
    public function queryRefund($orderNo, $type = self::OUT_TRADE_NO)
257
    {
258
        $params = [
259
            $type => $orderNo,
260
        ];
261
262
        return $this->request(self::API_ENDPOINT . $this->prefix . self::API_QUERY_REFUND, $params);
263
    }
264
265
    /**
266
     * Query refund status by out_refund_no.