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

@@ 1657-1668 (lines=12) @@
1654
        }
1655
    }
1656
1657
    private function getMarketplaceApplier()
1658
    {
1659
        if (!$this->marketplaceSettingsApplier) {
1660
            $this->marketplaceSettingsApplier = new MarketplaceSettingsApplier(
1661
                $this->getConfigComponent(),
1662
                Shopware()->Models(),
1663
                Shopware()->Db()
1664
            );
1665
        }
1666
1667
        return $this->marketplaceSettingsApplier;
1668
    }
1669
1670
    /**
1671
     * @return SnHttpClient