Code Duplication    Length = 12-12 lines in 2 locations

Controllers/Backend/ConnectConfig.php 1 location

@@ 1040-1051 (lines=12) @@
1037
        return $this->priceGateway;
1038
    }
1039
1040
    private function getSnHttpClient()
1041
    {
1042
        if (!$this->snHttpClient) {
1043
            $this->snHttpClient = new SnHttpClient(
1044
                $this->get('http_client'),
1045
                new \Shopware\Connect\Gateway\PDO(Shopware()->Db()->getConnection()),
1046
                $this->getConfigComponent()
1047
            );
1048
        }
1049
1050
        return $this->snHttpClient;
1051
    }
1052
}
1053

Controllers/Backend/Connect.php 1 location

@@ 1673-1684 (lines=12) @@
1670
    /**
1671
     * @return SnHttpClient
1672
     */
1673
    protected function getSnHttpClient()
1674
    {
1675
        if (!$this->snHttpClient) {
1676
            $this->snHttpClient = new SnHttpClient(
1677
                $this->get('http_client'),
1678
                new \Shopware\Connect\Gateway\PDO(Shopware()->Db()->getConnection()),
1679
                $this->getConfigComponent()
1680
            );
1681
        }
1682
1683
        return $this->snHttpClient;
1684
    }
1685
1686
    /**
1687
     * @return string