Code Duplication    Length = 15-15 lines in 2 locations

Bootstrap/Update.php 2 locations

@@ 472-486 (lines=15) @@
469
        }
470
    }
471
472
    private function recreateRemoteCategoriesAndProductAssignments()
473
    {
474
        if (version_compare($this->version, '1.1.4', '<=')) {
475
            try {
476
                $this->db->query('INSERT INTO `s_plugin_connect_config` (`name`, `value`) VALUES ("recreateConnectCategories", "0")');
477
            } catch (\Exception $e) {
478
                // ignore it if exists
479
                $this->logger->write(
480
                    true,
481
                    sprintf('An error occurred during update to version %s stacktrace: %s', $this->version, $e->getTraceAsString()),
482
                    $e->getMessage()
483
                );
484
            }
485
        }
486
    }
487
488
    private function setDefaultConfigForUpdateOrderStatus()
489
    {
@@ 488-502 (lines=15) @@
485
        }
486
    }
487
488
    private function setDefaultConfigForUpdateOrderStatus()
489
    {
490
        if (version_compare($this->version, '1.1.7', '<=')) {
491
            try {
492
                $this->db->query('INSERT INTO `s_plugin_connect_config` (`name`, `value`, `groupName`) VALUES ("updateOrderStatus", "0", "import")');
493
            } catch (\Exception $e) {
494
                // ignore it if exists
495
                $this->logger->write(
496
                    true,
497
                    sprintf('An error occurred during update to version %s stacktrace: %s', $this->version, $e->getTraceAsString()),
498
                    $e->getMessage()
499
                );
500
            }
501
        }
502
    }
503
}
504