Code Duplication    Length = 12-12 lines in 2 locations

Controllers/Backend/ConnectConfig.php 1 location

@@ 1053-1064 (lines=12) @@
1050
        return $this->priceGateway;
1051
    }
1052
1053
    private function getSnHttpClient()
1054
    {
1055
        if (!$this->snHttpClient) {
1056
            $this->snHttpClient = new SnHttpClient(
1057
                $this->get('http_client'),
1058
                new \Shopware\Connect\Gateway\PDO(Shopware()->Db()->getConnection()),
1059
                $this->getConfigComponent()
1060
            );
1061
        }
1062
1063
        return $this->snHttpClient;
1064
    }
1065
}
1066

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