Code Duplication    Length = 12-12 lines in 3 locations

Controllers/Backend/ConnectConfig.php 1 location

@@ 439-450 (lines=12) @@
436
    /**
437
     * @return ConnectExport
438
     */
439
    public function getConnectExport()
440
    {
441
        return new ConnectExport(
442
            $this->getHelper(),
443
            $this->getSDK(),
444
            $this->getModelManager(),
445
            new ProductsAttributesValidator(),
446
            $this->getConfigComponent(),
447
            new ErrorHandler(),
448
            $this->container->get('events')
449
        );
450
    }
451
452
    /**
453
     * It will make a call to SocialNetwork to reset the price type,

Components/ConnectFactory.php 1 location

@@ 479-490 (lines=12) @@
476
    /**
477
     * @return ConnectExport
478
     */
479
    public function getConnectExport()
480
    {
481
        return new ConnectExport(
482
            $this->getHelper(),
483
            $this->getSDK(),
484
            Shopware()->Models(),
485
            new ProductsAttributesValidator(),
486
            $this->getConfigComponent(),
487
            new ErrorHandler(),
488
            $this->container->get('events')
489
        );
490
    }
491
}
492

Controllers/Backend/Connect.php 1 location

@@ 1293-1304 (lines=12) @@
1290
    /**
1291
     * @return ConnectExport
1292
     */
1293
    public function getConnectExport()
1294
    {
1295
        return new ConnectExport(
1296
            $this->getHelper(),
1297
            $this->getSDK(),
1298
            $this->getModelManager(),
1299
            new ProductsAttributesValidator(),
1300
            $this->getConfigComponent(),
1301
            new ErrorHandler(),
1302
            $this->container->get('events')
1303
        );
1304
    }
1305
1306
    /**
1307
     * @return Config