Code Duplication    Length = 17-17 lines in 2 locations

Bootstrap.php 2 locations

@@ 129-145 (lines=17) @@
126
     * @param bool $fullSetup
127
     * @throws RuntimeException
128
     */
129
    public function doSetup($fullSetup = true)
130
    {
131
        $this->registerMyLibrary();
132
        $modelManager = Shopware()->Models();
133
        $setup = new Setup(
134
            $this,
135
            $modelManager,
136
            Shopware()->Db(),
137
            new \ShopwarePlugins\Connect\Bootstrap\Menu(
138
                $this,
139
                $this->getConfigComponents(),
140
                $modelManager,
141
                $this->assertMinimumVersion('5.2.6')
142
            )
143
        );
144
        $setup->run($fullSetup);
145
    }
146
147
    /**
148
     * Performs the update of the system
@@ 171-187 (lines=17) @@
168
    /**
169
     * Uninstall the plugin
170
     */
171
    public function doUninstall()
172
    {
173
        $this->registerMyLibrary();
174
        $modelManager = Shopware()->Models();
175
        $uninstall = new Uninstall(
176
            $this,
177
            $modelManager,
178
            Shopware()->Db(),
179
            new \ShopwarePlugins\Connect\Bootstrap\Menu(
180
                $this,
181
                $this->getConfigComponents(),
182
                $modelManager,
183
                $this->assertMinimumVersion('5.2.6')
184
            )
185
        );
186
187
        return $uninstall->run();
188
    }
189
190
    /**