Code Duplication    Length = 10-11 lines in 4 locations

src/Intraface/XMLRPC/Shop/Server.php 1 location

@@ 211-221 (lines=11) @@
208
     *
209
     * @return array with id and keywords
210
     */
211
    function getProductKeywords($credentials)
212
    {
213
214
        $this->checkCredentials($credentials);
215
        $this->_factoryWebshop();
216
217
        $product = new Product($this->kernel);
218
        $keywords = $product->getKeywordAppender();
219
        return $keywords->getUsedKeywords();
220
    }
221
222
    /**
223
     * Add product to basket
224
     *

src/Intraface/XMLRPC/Shop/Server0004.php 1 location

@@ 487-496 (lines=10) @@
484
     *
485
     * @return array with id and keywords
486
     */
487
    function getProductKeywords($credentials, $shop_id)
488
    {
489
        $this->checkCredentials($credentials);
490
        $this->_factoryWebshop($shop_id);
491
492
        $product = new Product($this->kernel);
493
        $keywords = $product->getKeywordAppender();
494
        return $this->prepareResponseData($keywords->getUsedKeywords());
495
    }
496
497
    /**
498
     * Returns the categories for the shop
499
     *

src/Intraface/XMLRPC/Shop/Server0100.php 1 location

@@ 652-661 (lines=10) @@
649
     *
650
     * @return array with id and keywords
651
     */
652
    function getProductKeywords($credentials, $shop_id)
653
    {
654
        $this->checkCredentials($credentials);
655
        $this->_factoryWebshop($shop_id);
656
657
        $product = new Product($this->kernel);
658
        $keywords = $product->getKeywordAppender();
659
        return $this->prepareResponseData($keywords->getUsedKeywords());
660
    }
661
662
    /**
663
     * Returns the categories for the shop
664
     *

src/Intraface/XMLRPC/Shop/Server2.php 1 location

@@ 289-298 (lines=10) @@
286
     *
287
     * @return array with id and keywords
288
     */
289
    function getProductKeywords($credentials, $shop_id)
290
    {
291
        $this->checkCredentials($credentials);
292
        $this->_factoryWebshop($shop_id);
293
294
        $product = new Product($this->kernel);
295
        $keywords = $product->getKeywordAppender();
296
        return $this->prepareResponseData($keywords->getUsedKeywords());
297
    }
298
299
    /**
300
     * Returns the categories for the shop
301
     *