Code Duplication    Length = 17-17 lines in 2 locations

src/cli/Database/Base/Channel.php 1 location

@@ 806-822 (lines=17) @@
803
     * @param      int $pos position in xml schema
804
     * @return mixed Value of field at $pos
805
     */
806
    public function getByPosition($pos)
807
    {
808
        switch ($pos) {
809
            case 0:
810
                return $this->getId();
811
                break;
812
            case 1:
813
                return $this->getInstanceName();
814
                break;
815
            case 2:
816
                return $this->getName();
817
                break;
818
            default:
819
                return null;
820
                break;
821
        } // switch()
822
    }
823
824
    /**
825
     * Exports the object as an array.

src/cli/Database/Base/User.php 1 location

@@ 842-858 (lines=17) @@
839
     * @param      int $pos position in xml schema
840
     * @return mixed Value of field at $pos
841
     */
842
    public function getByPosition($pos)
843
    {
844
        switch ($pos) {
845
            case 0:
846
                return $this->getId();
847
                break;
848
            case 1:
849
                return $this->getInstanceName();
850
                break;
851
            case 2:
852
                return $this->getName();
853
                break;
854
            default:
855
                return null;
856
                break;
857
        } // switch()
858
    }
859
860
    /**
861
     * Exports the object as an array.