Code Duplication    Length = 9-9 lines in 2 locations

src/Gateways/Wechat/Support.php 1 location

@@ 440-448 (lines=9) @@
437
     *
438
     * @author yansongda <[email protected]>
439
     */
440
    private function setHttpOptions(): self
441
    {
442
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
443
            $this->config->forget('http.base_uri');
444
            $this->httpOptions = $this->config->get('http');
445
        }
446
447
        return $this;
448
    }
449
}
450

src/Gateways/Alipay/Support.php 1 location

@@ 423-431 (lines=9) @@
420
     *
421
     * @author yansongda <[email protected]>
422
     */
423
    protected function setHttpOptions(): self
424
    {
425
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
426
            $this->config->forget('http.base_uri');
427
            $this->httpOptions = $this->config->get('http');
428
        }
429
430
        return $this;
431
    }
432
433
    /**
434
     * 0x转高精度数字.