Code Duplication    Length = 17-17 lines in 2 locations

Bootstrap.php 2 locations

@@ 143-159 (lines=17) @@
140
     * @param bool $fullSetup
141
     * @throws RuntimeException
142
     */
143
    public function doSetup($fullSetup = true)
144
    {
145
        $this->registerMyLibrary();
146
        $modelManager = Shopware()->Models();
147
        $setup = new Setup(
148
            $this,
149
            $modelManager,
150
            Shopware()->Db(),
151
            new \ShopwarePlugins\Connect\Bootstrap\Menu(
152
                $this,
153
                $this->getConfigComponents(),
154
                $modelManager,
155
                $this->assertMinimumVersion('5.2.6')
156
            )
157
        );
158
        $setup->run($fullSetup);
159
    }
160
161
    /**
162
     * Performs the update of the system
@@ 183-199 (lines=17) @@
180
    /**
181
     * Uninstall the plugin
182
     */
183
    public function doUninstall()
184
    {
185
        $this->registerMyLibrary();
186
        $modelManager = Shopware()->Models();
187
        $uninstall = new Uninstall(
188
            $this,
189
            $modelManager,
190
            Shopware()->Db(),
191
            new \ShopwarePlugins\Connect\Bootstrap\Menu(
192
                $this,
193
                $this->getConfigComponents(),
194
                $modelManager,
195
                $this->assertMinimumVersion('5.2.6')
196
            )
197
        );
198
        return $uninstall->run();
199
    }
200
201
    /**
202
     * Will dynamically register all needed events