Code Duplication    Length = 5-5 lines in 2 locations

class/pictures.php 2 locations

@@ 398-402 (lines=5) @@
395
         * If your site is Xoops it uses xoopsSecurity for the token.
396
         */
397
398
        if ($xCube) {
399
            $GLOBALS['xoopsGTicket']->addTicketXoopsFormElement($form, __LINE__, 1800, 'token');
400
        } else {
401
            $field_token = $GLOBALS['xoopsSecurity']->getTokenHTML();
402
        }
403
        $form->addElement($field_warning);
404
        $form->addElement($field_url, true);
405
        $form->addElement($field_desc, true);
@@ 461-465 (lines=5) @@
458
         * If your site is Xoops it uses xoopsSecurity for the token.
459
         */
460
461
        if ($xCube = true) {
462
            $GLOBALS['xoopsGTicket']->addTicketXoopsFormElement($form, __LINE__, 1800, 'token');
463
        } else {
464
            $field_token = $GLOBALS['xoopsSecurity']->getTokenHTML();
465
        }
466
467
        $form->addElement($field_warning);
468
        $form->addElement($field_desc);