Code Duplication    Length = 9-9 lines in 2 locations

src/Gateways/Alipay/Support.php 1 location

@@ 317-325 (lines=9) @@
314
     *
315
     * @return self
316
     */
317
    protected function setHttpOptions(): self
318
    {
319
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
320
            $this->config->forget('http.base_uri');
321
            $this->httpOptions = $this->config->get('http');
322
        }
323
324
        return $this;
325
    }
326
}
327

src/Gateways/Wechat/Support.php 1 location

@@ 476-484 (lines=9) @@
473
     *
474
     * @return self
475
     */
476
    private function setHttpOptions(): self
477
    {
478
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
479
            $this->config->forget('http.base_uri');
480
            $this->httpOptions = $this->config->get('http');
481
        }
482
483
        return $this;
484
    }
485
}
486