Code Duplication    Length = 5-5 lines in 2 locations

admin/manage.php 1 location

@@ 267-271 (lines=5) @@
264
            foreach ($frarray as $frame) {
265
                $action_edit   = "<a href='" . $baseurl . '?op=edit&frameid=' . $frame->getVar('frame_frameid') . "'><img src='../assets/images/edit.png' alt='" . _AM_MYIFRAME_EDIT . "'></a>";
266
                $action_delete = "<a href='" . $baseurl . '?op=delete&frameid=' . $frame->getVar('frame_frameid') . "'><img src='../assets/images/delete.png' alt='" . _AM_MYIFRAME_DELETE . "'></a>";
267
                if (xoops_trim($frame->getVar('frame_description')) === '') {
268
                    $liendesc = $frame->getVar('frame_url');
269
                } else {
270
                    $liendesc = "<a href='" . XOOPS_URL . '/modules/myiframe/index.php?iframeid=' . $frame->getVar('frame_frameid') . "'>" . $frame->getVar('frame_description') . '</a>';
271
                }
272
                echo "<tr class='"
273
                     . $class
274
                     . "'><td align='center'>"

index.php 1 location

@@ 79-83 (lines=5) @@
76
        if (count($frarray) > 0) {
77
            foreach ($frarray as $frame) {
78
                /** @var Myiframe $frame */
79
                if (xoops_trim($frame->getVar('frame_description')) === '') {
80
                    $liendesc = $frame->getVar('frame_url');
81
                } else {
82
                    $liendesc = "<a href='" . $baseurl . '?iframeid=' . $frame->getVar('frame_frameid') . "'>" . $frame->getVar('frame_description') . '</a>';
83
                }
84
                $iframe['list'] = $liendesc;
85
                $xoopsTpl->append('iframes', $iframe);
86
            }