Code Duplication    Length = 12-12 lines in 2 locations

Components/ConnectFactory.php 1 location

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

Controllers/Backend/Connect.php 1 location

@@ 1674-1685 (lines=12) @@
1671
        }
1672
    }
1673
1674
    private function getMarketplaceApplier()
1675
    {
1676
        if (!$this->marketplaceSettingsApplier) {
1677
            $this->marketplaceSettingsApplier = new MarketplaceSettingsApplier(
1678
                $this->getConfigComponent(),
1679
                Shopware()->Models(),
1680
                Shopware()->Db()
1681
            );
1682
        }
1683
1684
        return $this->marketplaceSettingsApplier;
1685
    }
1686
1687
    /**
1688
     * @return SnHttpClient