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

@@ 1693-1704 (lines=12) @@
1690
    /**
1691
     * @return SnHttpClient
1692
     */
1693
    protected function getSnHttpClient()
1694
    {
1695
        if (!$this->snHttpClient) {
1696
            $this->snHttpClient = new SnHttpClient(
1697
                $this->get('http_client'),
1698
                new \Shopware\Connect\Gateway\PDO(Shopware()->Db()->getConnection()),
1699
                $this->getConfigComponent()
1700
            );
1701
        }
1702
1703
        return $this->snHttpClient;
1704
    }
1705
1706
    /**
1707
     * @return string