Code Duplication    Length = 18-19 lines in 2 locations

Bootstrap/SubscriberRegistration.php 1 location

@@ 84-102 (lines=19) @@
81
     * @param ConnectFactory $connectFactory
82
     * @param Helper $helper
83
     */
84
    public function __construct(
85
        Config $config,
86
        ModelManager $modelManager,
87
        Enlight_Components_Db_Adapter_Pdo_Mysql $db,
88
        \Shopware_Plugins_Backend_SwagConnect_Bootstrap $pluginBootstrap,
89
        \Enlight_Event_EventManager $eventManager,
90
        SDK $SDK,
91
        ConnectFactory $connectFactory,
92
        Helper $helper
93
    ) {
94
        $this->config = $config;
95
        $this->modelManager = $modelManager;
96
        $this->db = $db;
97
        $this->pluginBootstrap = $pluginBootstrap;
98
        $this->eventManager = $eventManager;
99
        $this->SDK = $SDK;
100
        $this->connectFactory = $connectFactory;
101
        $this->helper = $helper;
102
    }
103
104
    /**
105
     * @param boolean $isShopware52

Components/ConnectExport.php 1 location

@@ 74-91 (lines=18) @@
71
     * @param \ShopwarePlugins\Connect\Components\ErrorHandler $errorHandler
72
     * @param Enlight_Event_EventManager $eventManager
73
     */
74
    public function __construct(
75
        Helper $helper,
76
        SDK $sdk,
77
        ModelManager $manager,
78
        ProductAttributesValidator $productAttributesValidator,
79
        Config $configComponent,
80
        ErrorHandler $errorHandler,
81
        Enlight_Event_EventManager $eventManager
82
    )
83
    {
84
        $this->helper = $helper;
85
        $this->sdk = $sdk;
86
        $this->manager = $manager;
87
        $this->productAttributesValidator = $productAttributesValidator;
88
        $this->configComponent = $configComponent;
89
        $this->errorHandler = $errorHandler;
90
        $this->eventManager = $eventManager;
91
    }
92
93
    /**
94
     * Load article entity