Code Duplication    Length = 9-10 lines in 2 locations

Helper/CacheCleaner.php 2 locations

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