Code Duplication    Length = 10-12 lines in 3 locations

main/inc/lib/pear/HTML/Table.php 3 locations

@@ 683-692 (lines=10) @@
680
     * @access   public
681
     * @throws   PEAR_Error
682
     */
683
    function addRow($contents = null, $attributes = null, $type = 'td',
684
        $inTR = false, $body = 0)
685
    {
686
        $ret = $this->_adjustTbodyCount($body, 'addRow');
687
        if (PEAR::isError($ret)) {
688
            return $ret;
689
        }
690
        $ret = $this->_tbodies[$body]->addRow($contents, $attributes, $type, $inTR);
691
        return $ret;
692
    }
693
694
    /**
695
     * Sets the row attributes for an existing row
@@ 708-718 (lines=11) @@
705
     * @access   public
706
     * @throws   PEAR_Error
707
     */
708
    function setRowAttributes($row, $attributes, $inTR = false, $body = 0)
709
    {
710
        $ret = $this->_adjustTbodyCount($body, 'setRowAttributes');
711
        if (PEAR::isError($ret)) {
712
            return $ret;
713
        }
714
        $ret = $this->_tbodies[$body]->setRowAttributes($row, $attributes, $inTR);
715
        if (PEAR::isError($ret)) {
716
            return $ret;
717
        }
718
    }
719
720
    /**
721
     * Updates the row attributes for an existing row
@@ 732-743 (lines=12) @@
729
     * @access   public
730
     * @throws   PEAR_Error
731
     */
732
    function updateRowAttributes($row, $attributes = null, $inTR = false,
733
        $body = 0)
734
    {
735
        $ret = $this->_adjustTbodyCount($body, 'updateRowAttributes');
736
        if (PEAR::isError($ret)) {
737
            return $ret;
738
        }
739
        $ret = $this->_tbodies[$body]->updateRowAttributes($row, $attributes, $inTR);
740
        if (PEAR::isError($ret)) {
741
            return $ret;
742
        }
743
    }
744
745
    /**
746
     * Returns the attributes for a given row as contained in the TR tag