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

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