Code Duplication    Length = 9-10 lines in 2 locations

Helper/CacheCleaner.php 2 locations

@@ 193-202 (lines=10) @@
190
     * Regen homepage
191
     * @return void
192
     */
193
    public function purgeHomepage(): void
194
    {
195
        $this->lock();
196
        $this->addUrlToPurge('');
197
        $this->addUrlToRegenerate('');
198
        $this->varnishUrlPurger->setVerifyPeer($this->verifyPeer);
199
        $this->varnishUrlPurger->runPurgeQueue();
200
        $this->varnishUrlRegenerator->runRegenerationQueue();
201
        $this->unlock();
202
    }
203
204
    /**
205
     * @param string $url
@@ 234-242 (lines=9) @@
231
    /**
232
     * @return void
233
     */
234
    public function purgeAndRegenerateProducts(): void
235
    {
236
        $this->lock();
237
        $this->processProductsPurgeAndRegenerate();
238
        $this->varnishUrlPurger->setVerifyPeer($this->verifyPeer);
239
        $this->varnishUrlPurger->runPurgeQueue();
240
        $this->varnishUrlRegenerator->runRegenerationQueue();
241
        $this->unlock();
242
    }
243
244
    /**
245
     * @return bool