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

@@ 1627-1638 (lines=12) @@
1624
    /**
1625
     * @return SnHttpClient
1626
     */
1627
    protected function getSnHttpClient()
1628
    {
1629
        if (!$this->snHttpClient) {
1630
            $this->snHttpClient = new SnHttpClient(
1631
                $this->get('http_client'),
1632
                new \Shopware\Connect\Gateway\PDO(Shopware()->Db()->getConnection()),
1633
                $this->getConfigComponent()
1634
            );
1635
        }
1636
1637
        return $this->snHttpClient;
1638
    }
1639
1640
    /**
1641
     * @return string