Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 193-203 (lines=11) @@
190
     * @param mixed $keyword Integer with keyword id or array with keyword ids.
191
     * @return array
192
     */
193
    public function getProductIdsWithKeywordId($credentials, $shop_id, $keyword)
194
    {
195
        $this->checkCredentials($credentials);
196
        $this->_factoryWebshop($shop_id);
197
198
        $gateway = new Intraface_modules_product_Gateway($this->webshop->kernel);
199
200
        return $this->prepareResponseData(
201
            $gateway->getProductIdsWithKeywordForShop($this->processRequestData($keyword))
202
        );
203
    }
204
205
    /**
206
     * Gets a list with products with a given keyword or with given keywords

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

@@ 195-205 (lines=11) @@
192
     * @param mixed $keyword Integer with keyword id or array with keyword ids.
193
     * @return array
194
     */
195
    public function getProductIdsWithKeywordId($credentials, $shop_id, $keyword)
196
    {
197
        $this->checkCredentials($credentials);
198
        $this->_factoryWebshop($shop_id);
199
200
        $gateway = new Intraface_modules_product_Gateway($this->webshop->kernel);
201
202
        return $this->prepareResponseData(
203
            $gateway->getProductIdsWithKeywordForShop($this->processRequestData($keyword))
204
        );
205
    }
206
207
    /**
208
     * Gets a list with products with a given keyword or with given keywords