Code Duplication    Length = 17-19 lines in 2 locations

Controllers/Backend/Import.php 1 location

@@ 342-360 (lines=19) @@
339
        ]);
340
    }
341
342
    public function activateArticlesAction()
343
    {
344
        $articleIds = $this->request->getParam('ids', 0);
345
346
        try {
347
            $this->getImportService()->activateArticles($articleIds);
348
        } catch (\Exception $e) {
349
            $this->getLogger()->write(true, $e->getMessage(), $e);
350
            $this->View()->assign([
351
                'success' => false,
352
                'error' => 'There is a problem with products activation!',
353
            ]);
354
355
            return;
356
        }
357
358
        $this->View()->assign([
359
            'success' => true,
360
        ]);
361
    }
362
363
    /**

Controllers/Backend/ConnectConfig.php 1 location

@@ 81-97 (lines=17) @@
78
     * connect module. The function is used to save store data.
79
     * @return string
80
     */
81
    public function saveGeneralAction()
82
    {
83
        try {
84
            $data = $this->Request()->getParam('data');
85
            unset($data['id']);
86
            $this->getConfigComponent()->setGeneralConfigs($data);
87
88
            $this->View()->assign([
89
                'success' => true
90
            ]);
91
        } catch (\Exception $e) {
92
            $this->View()->assign([
93
                'success' => false,
94
                'message' => $e->getMessage()
95
            ]);
96
        }
97
    }
98
99
    public function changeLoggingAction()
100
    {