Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 453-463 (lines=11) @@
450
                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
451
                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
452
                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
453
                if (isset($ftrs['hiddenInput'])) {
454
                    if (is_array($ftrs['hiddenInput'])) {
455
                        foreach ($ftrs['hiddenInput'] as $valueF) {
456
                            $sReturn .= '<input type="hidden" name="' . $valueF
457
                                    . '" value="' . $_REQUEST[$valueF] . '" />';
458
                        }
459
                    } else {
460
                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
461
                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
462
                    }
463
                }
464
                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
465
            }
466
            $sReturn .= '</form>';
@@ 477-487 (lines=11) @@
474
                $sReturn .= $ftrs['visibleInput'];
475
            }
476
            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
477
            if (isset($ftrs['hiddenInput'])) {
478
                if (is_array($ftrs['hiddenInput'])) {
479
                    foreach ($ftrs['hiddenInput'] as $valueF) {
480
                        $sReturn .= '<input type="hidden" name="' . $valueF
481
                                . '" value="' . $_REQUEST[$valueF] . '" />';
482
                    }
483
                } else {
484
                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
485
                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
486
                }
487
            }
488
            $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
489
            $sReturn .= '</form>';
490
        }