Code Duplication    Length = 10-10 lines in 2 locations

Components/Translations/ProductTranslator.php 1 location

@@ 207-216 (lines=10) @@
204
        return true;
205
    }
206
207
    public function getUrlForProduct($productId, $shopId = null)
208
    {
209
        $shopId = (int) $shopId;
210
        $url = $this->baseProductUrl . $productId;
211
        if ($shopId > 0) {
212
            $url = $url . '/shId/' . $shopId;
213
        }
214
215
        return $url;
216
    }
217
218
    private function getShopRepository()
219
    {

Components/ProductQuery/LocalProductQuery.php 1 location

@@ 376-385 (lines=10) @@
373
        return $builder;
374
    }
375
376
    public function getUrlForProduct($productId, $shopId = null)
377
    {
378
        $shopId = (int) $shopId;
379
        $url = $this->baseProductUrl . $productId;
380
        if ($shopId > 0) {
381
            $url = $url . '/shId/' . $shopId;
382
        }
383
384
        return $url;
385
    }
386
387
    /**
388
     * Select attributes  which are already mapped to marketplace