Code Duplication    Length = 9-9 lines in 2 locations

manager/includes/extenders/maketable.class.php 2 locations

@@ 359-367 (lines=9) @@
356
     * @param string $value Indicates the INPUT form element type attribute.
357
     * @return string
358
     */
359
    public function getCellAction($currentActionFieldValue)
360
    {
361
        $cellAction = '';
362
        if ($this->cellAction) {
363
            $cellAction = ' onClick="javascript:window.location=\'' . $this->cellAction . $this->actionField . '=' . urlencode($currentActionFieldValue) . '\'" ';
364
        }
365
366
        return $cellAction;
367
    }
368
369
    /**
370
     * Generates the cell content, including any specified action fields values.
@@ 376-384 (lines=9) @@
373
     * @param string $value The value of the cell.
374
     * @return string
375
     */
376
    public function createCellText($currentActionFieldValue, $value)
377
    {
378
        $cell = $value;
379
        if ($this->linkAction) {
380
            $cell = '<a href="' . $this->linkAction . $this->actionField . '=' . urlencode($currentActionFieldValue) . '">' . $cell . '</a>';
381
        }
382
383
        return $cell;
384
    }
385
386
    /**
387
     * Sets an option to generate a check all link when checkbox is indicated