Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 469-479 (lines=11) @@
466
                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
467
                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
468
                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
469
                if (isset($ftrs['hiddenInput'])) {
470
                    if (is_array($ftrs['hiddenInput'])) {
471
                        foreach ($ftrs['hiddenInput'] as $valueF) {
472
                            $sReturn .= '<input type="hidden" name="' . $valueF
473
                                    . '" value="' . $_REQUEST[$valueF] . '" />';
474
                        }
475
                    } else {
476
                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
477
                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
478
                    }
479
                }
480
                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
481
            }
482
            $sReturn .= '</form>';
@@ 493-503 (lines=11) @@
490
                $sReturn .= $ftrs['visibleInput'];
491
            }
492
            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
493
            if (isset($ftrs['hiddenInput'])) {
494
                if (is_array($ftrs['hiddenInput'])) {
495
                    foreach ($ftrs['hiddenInput'] as $valueF) {
496
                        $sReturn .= '<input type="hidden" name="' . $valueF
497
                                . '" value="' . $_REQUEST[$valueF] . '" />';
498
                    }
499
                } else {
500
                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
501
                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
502
                }
503
            }
504
            $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
505
            $sReturn .= '</form>';
506
        }