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

@@ 365-373 (lines=9) @@
362
     *
363
     * @return self
364
     */
365
    protected function setHttpOptions(): self
366
    {
367
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
368
            $this->config->forget('http.base_uri');
369
            $this->httpOptions = $this->config->get('http');
370
        }
371
372
        return $this;
373
    }
374
}
375