Code Duplication    Length = 19-21 lines in 2 locations

Subscribers/Article.php 1 location

@@ 79-97 (lines=19) @@
76
     */
77
    private $pluginPath;
78
79
    public function __construct(
80
        Gateway $connectGateway,
81
        ModelManager $modelManager,
82
        ConnectExport $connectExport,
83
        Helper $helper,
84
        Config $config,
85
        SDK $sdk,
86
        \Shopware_Components_Snippet_Manager $snippetManager,
87
        $pluginPath
88
    ) {
89
        $this->connectGateway = $connectGateway;
90
        $this->modelManager = $modelManager;
91
        $this->connectExport = $connectExport;
92
        $this->helper = $helper;
93
        $this->config = $config;
94
        $this->sdk = $sdk;
95
        $this->snippetManager = $snippetManager;
96
        $this->pluginPath = $pluginPath;
97
    }
98
99
    /**
100
     * {@inheritdoc}

Bootstrap/SubscriberRegistration.php 1 location

@@ 96-116 (lines=21) @@
93
     * @param Helper $helper
94
     * @param Container $container
95
     */
96
    public function __construct(
97
        Config $config,
98
        ModelManager $modelManager,
99
        Enlight_Components_Db_Adapter_Pdo_Mysql $db,
100
        \Shopware_Plugins_Backend_SwagConnect_Bootstrap $pluginBootstrap,
101
        \Enlight_Event_EventManager $eventManager,
102
        SDK $SDK,
103
        ConnectFactory $connectFactory,
104
        Helper $helper,
105
        Container $container
106
    ) {
107
        $this->config = $config;
108
        $this->modelManager = $modelManager;
109
        $this->db = $db;
110
        $this->pluginBootstrap = $pluginBootstrap;
111
        $this->eventManager = $eventManager;
112
        $this->SDK = $SDK;
113
        $this->connectFactory = $connectFactory;
114
        $this->helper = $helper;
115
        $this->container = $container;
116
    }
117
118
    public function registerSubscribers()
119
    {