Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 714-727 (lines=14) @@
711
     * @param      int $pos position in xml schema
712
     * @return mixed Value of field at $pos
713
     */
714
    public function getByPosition($pos)
715
    {
716
        switch ($pos) {
717
            case 0:
718
                return $this->getLinkId();
719
                break;
720
            case 1:
721
                return $this->getProductId();
722
                break;
723
            default:
724
                return null;
725
                break;
726
        } // switch()
727
    }
728
729
    /**
730
     * Exports the object as an array.

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

@@ 714-727 (lines=14) @@
711
     * @param      int $pos position in xml schema
712
     * @return mixed Value of field at $pos
713
     */
714
    public function getByPosition($pos)
715
    {
716
        switch ($pos) {
717
            case 0:
718
                return $this->getLinkId();
719
                break;
720
            case 1:
721
                return $this->getProductId();
722
                break;
723
            default:
724
                return null;
725
                break;
726
        } // switch()
727
    }
728
729
    /**
730
     * Exports the object as an array.