Code Duplication    Length = 13-15 lines in 4 locations

Subscribers/ProductStreams.php 1 location

@@ 56-68 (lines=13) @@
53
     * @param SDK $sdk
54
     * @param Enlight_Components_Db_Adapter_Pdo_Mysql $db
55
     */
56
    public function __construct(
57
        ConnectExport $connectExport,
58
        Config $config,
59
        Helper $helper,
60
        SDK $sdk,
61
        Enlight_Components_Db_Adapter_Pdo_Mysql $db
62
    ) {
63
        $this->connectExport = $connectExport;
64
        $this->config = $config;
65
        $this->helper = $helper;
66
        $this->sdk = $sdk;
67
        $this->db = $db;
68
    }
69
70
    /**
71
     * {@inheritdoc}

Subscribers/Lifecycle.php 1 location

@@ 69-82 (lines=14) @@
66
     * @param Config $config
67
     * @param ConnectExport $connectExport
68
     */
69
    public function __construct(
70
        ModelManager $modelManager,
71
        Helper $helper,
72
        SDK $sdk,
73
        Config $config,
74
        ConnectExport $connectExport
75
    ) {
76
        $this->manager = $modelManager;
77
        $this->helper = $helper;
78
        $this->sdk = $sdk;
79
        $this->config = $config;
80
        $this->connectExport = $connectExport;
81
        $this->autoUpdateProducts = $this->config->getConfig('autoUpdateProducts', 1);
82
    }
83
84
    /**
85
     * {@inheritdoc}

Subscribers/CronJob.php 1 location

@@ 80-94 (lines=15) @@
77
     * @param Container $container
78
     * @param ProductStreamService $productStreamService
79
     */
80
    public function __construct(
81
        SDK $sdk,
82
        ConnectExport $connectExport,
83
        Config $configComponent,
84
        Helper $helper,
85
        Container $container,
86
        ProductStreamService $productStreamService
87
    ) {
88
        $this->connectExport = $connectExport;
89
        $this->sdk = $sdk;
90
        $this->configComponent = $configComponent;
91
        $this->helper = $helper;
92
        $this->container = $container;
93
        $this->productStreamService = $productStreamService;
94
    }
95
96
    /**
97
     * {@inheritdoc}

Subscribers/Article.php 1 location

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