Code Duplication    Length = 12-12 lines in 2 locations

Subscribers/Article.php 1 location

@@ 306-317 (lines=12) @@
303
    /**
304
     * @return ConnectExport
305
     */
306
    public function getConnectExport()
307
    {
308
        return new ConnectExport(
309
            $this->getHelper(),
310
            $this->getSDK(),
311
            Shopware()->Models(),
312
            new ProductsAttributesValidator(),
313
            $this->getConnectConfig(),
314
            new ErrorHandler(),
315
            Shopware()->Container()->get('events')
316
        );
317
    }
318
319
    /**
320
     * When saving prices make sure, that the connectPrice is stored in net

Tests/Shopware/Connect/ConnectTestHelper.php 1 location

@@ 108-119 (lines=12) @@
105
    /**
106
     * @return ConnectExport
107
     */
108
    public function getConnectExport()
109
    {
110
        return new ConnectExport(
111
            $this->getHelper(),
112
            $this->getSDK(),
113
            Shopware()->Models(),
114
            new ProductsAttributesValidator(),
115
            new Config(Shopware()->Models()),
116
            new ErrorHandler(),
117
            Shopware()->Container()->get('events')
118
        );
119
    }
120
121
    /**
122
     * @return ImageImport