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

@@ 657-664 (lines=8) @@
654
    /**
655
     * @return \Shopware\Connect\Gateway\PDO
656
     */
657
    private function getConnectPDOGateway()
658
    {
659
        if (!$this->connectGateway) {
660
            $this->connectGateway = new PDO(Shopware()->Db()->getConnection());
661
        }
662
663
        return $this->connectGateway;
664
    }
665
666
    /**
667
     * @param string $action