Code Duplication    Length = 5-5 lines in 2 locations

class/pictures.php 2 locations

@@ 388-392 (lines=5) @@
385
         * If your site is Xoops it uses xoopsSecurity for the token.
386
         */
387
388
        if ($xCube) {
389
            $GLOBALS['xoopsGTicket']->addTicketXoopsFormElement($form, __LINE__, 1800, 'token');
390
        } else {
391
            $field_token = $GLOBALS['xoopsSecurity']->getTokenHTML();
392
        }
393
        $form->addElement($field_warning);
394
        $form->addElement($field_url, true);
395
        $form->addElement($field_desc, true);
@@ 451-455 (lines=5) @@
448
         * If your site is Xoops it uses xoopsSecurity for the token.
449
         */
450
451
        if ($xCube = true) {
452
            $GLOBALS['xoopsGTicket']->addTicketXoopsFormElement($form, __LINE__, 1800, 'token');
453
        } else {
454
            $field_token = $GLOBALS['xoopsSecurity']->getTokenHTML();
455
        }
456
457
        $form->addElement($field_warning);
458
        $form->addElement($field_desc);