Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

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