Code Duplication    Length = 6-6 lines in 2 locations

src/projects/gperms.php 1 location

@@ 254-259 (lines=6) @@
251
$xml .= '<dualright>'
252
      . '<group title="' . get_html_resource(RES_PERMISSIONS_ID) . '">';
253
254
foreach ($gperms as $gperm)
255
{
256
    $xml .= '<control name="' . $gperm[GPERMS_CONTROL] . '">'
257
          . '<checkbox>' . get_html_resource($gperm[GPERMS_RESOURCE]) . '</checkbox>'
258
          . '</control>';
259
}
260
261
$xml .= '</group>'
262
      . '<button default="true">'       . get_html_resource(RES_SAVE_ID)       . '</button>'

src/projects/tperms.php 1 location

@@ 295-300 (lines=6) @@
292
$xml .= '<dualright>'
293
      . '<group title="' . get_html_resource(RES_PERMISSIONS_ID) . '">';
294
295
foreach ($gperms as $gperm)
296
{
297
    $xml .= '<control name="' . $gperm[GPERMS_CONTROL] . '">'
298
          . '<checkbox>' . get_html_resource($gperm[GPERMS_RESOURCE]) . '</checkbox>'
299
          . '</control>';
300
}
301
302
$xml .= '</group>'
303
      . '<button default="true">'       . get_html_resource(RES_SAVE_ID)       . '</button>'