Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 476-486 (lines=11) @@
473
                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
474
                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
475
                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
476
                if (isset($ftrs['hiddenInput'])) {
477
                    if (is_array($ftrs['hiddenInput'])) {
478
                        foreach ($ftrs['hiddenInput'] as $valueF) {
479
                            $sReturn .= '<input type="hidden" name="' . $valueF
480
                                    . '" value="' . $_REQUEST[$valueF] . '" />';
481
                        }
482
                    } else {
483
                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
484
                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
485
                    }
486
                }
487
                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
488
            }
489
            $sReturn .= '</form>';
@@ 500-510 (lines=11) @@
497
                $sReturn .= $ftrs['visibleInput'];
498
            }
499
            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
500
            if (isset($ftrs['hiddenInput'])) {
501
                if (is_array($ftrs['hiddenInput'])) {
502
                    foreach ($ftrs['hiddenInput'] as $valueF) {
503
                        $sReturn .= '<input type="hidden" name="' . $valueF
504
                                . '" value="' . $_REQUEST[$valueF] . '" />';
505
                    }
506
                } else {
507
                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
508
                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
509
                }
510
            }
511
            $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
512
            $sReturn .= '</form>';
513
        }