Code Duplication    Length = 9-9 lines in 2 locations

src/Gateways/Wechat/Support.php 1 location

@@ 469-477 (lines=9) @@
466
     *
467
     * @return self
468
     */
469
    private function setHttpOptions(): self
470
    {
471
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
472
            $this->config->forget('http.base_uri');
473
            $this->httpOptions = $this->config->get('http');
474
        }
475
476
        return $this;
477
    }
478
}
479

src/Gateways/Alipay/Support.php 1 location

@@ 367-375 (lines=9) @@
364
     *
365
     * @return self
366
     */
367
    protected function setHttpOptions(): self
368
    {
369
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
370
            $this->config->forget('http.base_uri');
371
            $this->httpOptions = $this->config->get('http');
372
        }
373
374
        return $this;
375
    }
376
377
    /**
378
     * 生成应用证书SN