Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 462-472 (lines=11) @@
459
                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
460
                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
461
                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
462
                if (isset($ftrs['hiddenInput'])) {
463
                    if (is_array($ftrs['hiddenInput'])) {
464
                        foreach ($ftrs['hiddenInput'] as $valueF) {
465
                            $sReturn .= '<input type="hidden" name="' . $valueF
466
                                    . '" value="' . $_REQUEST[$valueF] . '" />';
467
                        }
468
                    } else {
469
                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
470
                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
471
                    }
472
                }
473
                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
474
            }
475
            $sReturn .= '</form>';
@@ 486-496 (lines=11) @@
483
                $sReturn .= $ftrs['visibleInput'];
484
            }
485
            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
486
            if (isset($ftrs['hiddenInput'])) {
487
                if (is_array($ftrs['hiddenInput'])) {
488
                    foreach ($ftrs['hiddenInput'] as $valueF) {
489
                        $sReturn .= '<input type="hidden" name="' . $valueF
490
                                . '" value="' . $_REQUEST[$valueF] . '" />';
491
                    }
492
                } else {
493
                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
494
                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
495
                }
496
            }
497
            $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
498
            $sReturn .= '</form>';
499
        }