Code Duplication    Length = 12-12 lines in 2 locations

Components/ConnectFactory.php 1 location

@@ 461-472 (lines=12) @@
458
        return $this->productTranslationsGateway;
459
    }
460
461
    public function getMarketplaceApplier()
462
    {
463
        if (!$this->marketplaceSettingsApplier) {
464
            $this->marketplaceSettingsApplier = new MarketplaceSettingsApplier(
465
                $this->getConfigComponent(),
466
                Shopware()->Models(),
467
                Shopware()->Db()
468
            );
469
        }
470
471
        return $this->marketplaceSettingsApplier;
472
    }
473
474
    /**
475
     * @return ConnectExport

Controllers/Backend/Connect.php 1 location

@@ 1611-1622 (lines=12) @@
1608
        }
1609
    }
1610
1611
    private function getMarketplaceApplier()
1612
    {
1613
        if (!$this->marketplaceSettingsApplier) {
1614
            $this->marketplaceSettingsApplier = new MarketplaceSettingsApplier(
1615
                $this->getConfigComponent(),
1616
                Shopware()->Models(),
1617
                Shopware()->Db()
1618
            );
1619
        }
1620
1621
        return $this->marketplaceSettingsApplier;
1622
    }
1623
1624
    /**
1625
     * @return SnHttpClient