Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

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