Code Duplication    Length = 12-13 lines in 2 locations

main/inc/lib/pear/HTML/Table/Storage.php 2 locations

@@ 338-349 (lines=12) @@
335
     * @return   array
336
     * @access   public
337
     */
338
    function getCellAttributes($row, $col)
339
    {
340
        if (   isset($this->_structure[$row][$col])
341
            && $this->_structure[$row][$col] != '__SPANNED__'
342
        ) {
343
            return $this->_structure[$row][$col]['attr'];
344
        } elseif (!isset($this->_structure[$row][$col])) {
345
            return PEAR::raiseError('Invalid table cell reference[' .
346
                $row . '][' . $col . '] in HTML_Table::getCellAttributes');
347
        }
348
        return;
349
    }
350
351
    /**
352
     * Sets the cell contents for an existing cell
@@ 428-440 (lines=13) @@
425
     * @access   public
426
     * @return   mixed
427
     */
428
    function getCellContents($row, $col)
429
    {
430
        if (   isset($this->_structure[$row][$col])
431
            && $this->_structure[$row][$col] == '__SPANNED__'
432
        ) {
433
            return;
434
        }
435
        if (!isset($this->_structure[$row][$col])) {
436
            return PEAR::raiseError('Invalid table cell reference[' .
437
                $row . '][' . $col . '] in HTML_Table::getCellContents');
438
        }
439
        return $this->_structure[$row][$col]['contents'];
440
    }
441
442
    /**
443
     * Sets the contents of a header cell