Code Duplication    Length = 12-12 lines in 2 locations

Bootstrap/Uninstall.php 1 location

@@ 51-62 (lines=12) @@
48
     * @param Pdo $db
49
     * @param Menu $menu
50
     */
51
    public function __construct(
52
        \Shopware_Plugins_Backend_SwagConnect_Bootstrap $bootstrap,
53
        ModelManager $modelManager,
54
        Pdo $db,
55
        Menu $menu
56
    ) {
57
        $this->bootstrap = $bootstrap;
58
        $this->modelManager = $modelManager;
59
        $this->db = $db;
60
        $this->menu = $menu;
61
    }
62
63
    public function run()
64
    {
65
        // Currently this should not be done

Bootstrap/Update.php 1 location

@@ 53-64 (lines=12) @@
50
     * @param Pdo $db
51
     * @param $version
52
     */
53
    public function __construct(
54
        \Shopware_Plugins_Backend_SwagConnect_Bootstrap $bootstrap,
55
        ModelManager $modelManager,
56
        Pdo $db,
57
        $version
58
    ) {
59
        $this->bootstrap = $bootstrap;
60
        $this->modelManager = $modelManager;
61
        $this->db = $db;
62
        $this->version = $version;
63
    }
64
65
    public function run()
66
    {
67
        // Force an SDK re-verify