Code Duplication    Length = 8-8 lines in 2 locations

Components/ConnectFactory.php 1 location

@@ 330-337 (lines=8) @@
327
    /**
328
     * @return \Shopware\Connect\Gateway\PDO
329
     */
330
    private function getConnectPDOGateway()
331
    {
332
        if (!$this->connectGateway) {
333
            $this->connectGateway = new PDO(Shopware()->Db()->getConnection());
334
        }
335
336
        return $this->connectGateway;
337
    }
338
339
    /**
340
     * @return ProductQuery

Components/Config.php 1 location

@@ 705-712 (lines=8) @@
702
    /**
703
     * @return \Shopware\Connect\Gateway\PDO
704
     */
705
    private function getConnectPDOGateway()
706
    {
707
        if (!$this->connectGateway) {
708
            $this->connectGateway = new PDO(Shopware()->Db()->getConnection());
709
        }
710
711
        return $this->connectGateway;
712
    }
713
714
    /**
715
     * @param string $action