Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 561-571 (lines=11) @@
558
                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
559
                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
560
                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
561
                if (isset($ftrs['hiddenInput'])) {
562
                    if (is_array($ftrs['hiddenInput'])) {
563
                        foreach ($ftrs['hiddenInput'] as $valueF) {
564
                            $sReturn .= '<input type="hidden" name="' . $valueF
565
                                    . '" value="' . $_REQUEST[$valueF] . '" />';
566
                        }
567
                    } else {
568
                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
569
                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
570
                    }
571
                }
572
                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
573
            }
574
            $sReturn .= '</form>';
@@ 585-595 (lines=11) @@
582
                $sReturn .= $ftrs['visibleInput'];
583
            }
584
            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
585
            if (isset($ftrs['hiddenInput'])) {
586
                if (is_array($ftrs['hiddenInput'])) {
587
                    foreach ($ftrs['hiddenInput'] as $valueF) {
588
                        $sReturn .= '<input type="hidden" name="' . $valueF
589
                                . '" value="' . $_REQUEST[$valueF] . '" />';
590
                    }
591
                } else {
592
                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
593
                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
594
                }
595
            }
596
            $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
597
            $sReturn .= '</form>';
598
        }