Code Duplication    Length = 13-13 lines in 2 locations

Subscribers/ServiceContainer.php 1 location

@@ 96-108 (lines=13) @@
93
    /**
94
     * @return ProductStreamService
95
     */
96
    public function onProductStreamService()
97
    {
98
        /** @var ProductStreamAttributeRepository $streamAttrRepository */
99
        $streamAttrRepository = $this->manager->getRepository(ProductStreamAttribute::class);
100
101
        return new ProductStreamService(
102
            new ProductStreamRepository($this->manager, $this->container->get('shopware_product_stream.repository')),
103
            $streamAttrRepository,
104
            $this->config,
105
            $this->container->get('shopware_search.product_search'),
106
            $this->container->get('shopware_storefront.context_service')
107
        );
108
    }
109
110
    /**
111
     * @return MenuService

Bootstrap/SubscriberRegistration.php 1 location

@@ 311-323 (lines=13) @@
308
    /**
309
     * @return ProductStreamService
310
     */
311
    private function createProductStreamService()
312
    {
313
        /** @var ProductStreamAttributeRepository $streamAttrRepository */
314
        $streamAttrRepository = $this->modelManager->getRepository('Shopware\CustomModels\Connect\ProductStreamAttribute');
315
316
        return new ProductStreamService(
317
            new ProductStreamRepository($this->modelManager, $this->container->get('shopware_product_stream.repository')),
318
            $streamAttrRepository,
319
            $this->config,
320
            $this->container->get('shopware_search.product_search'),
321
            $this->container->get('shopware_storefront.context_service')
322
        );
323
    }
324
325
    /**
326
     * @return array