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

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