Code Duplication    Length = 8-8 lines in 2 locations

application/modules/mod_link/models/Base/PageLinkProduct.php 1 location

@@ 954-961 (lines=8) @@
951
     * The array elements will be in same order as specified in XML.
952
     * @return array
953
     */
954
    public function getPrimaryKey()
955
    {
956
        $pks = array();
957
        $pks[0] = $this->getLinkId();
958
        $pks[1] = $this->getProductId();
959
960
        return $pks;
961
    }
962
963
    /**
964
     * Set the [composite] primary key.

application/modules/mod_link/models/Base/PageLinkProducts.php 1 location

@@ 954-961 (lines=8) @@
951
     * The array elements will be in same order as specified in XML.
952
     * @return array
953
     */
954
    public function getPrimaryKey()
955
    {
956
        $pks = array();
957
        $pks[0] = $this->getLinkId();
958
        $pks[1] = $this->getProductId();
959
960
        return $pks;
961
    }
962
963
    /**
964
     * Set the [composite] primary key.